How to check in android is Developer option enabled

I have found this solution to detect Developer option **
int adb = Settings.Secure.getInt(this.getContentResolver(),
** Settings.Global.DEVELOPMENT_SETTINGS_ENABLED , 0);

But its a android studio java code, How can I implement it