private static boolean hasMoxyReflector ( ) { if ( hasMoxyReflector != null ) { return hasMoxyReflector ; } try { new MoxyReflector ( ) ; hasMoxyReflector = true ; } catch ( NoClassDefFoundError error ) { hasMoxyReflector = false ; } return hasMoxyReflector ; }
Check is it have generated MoxyReflector without usage of reflection API