@ Nullable private static Method findMethod ( JavaClass cls , String name , String sig ) { Method [ ] methods = cls . getMethods ( ) ; for ( Method m : methods ) { if ( m . getName ( ) . equals ( name ) && m . getSignature ( ) . equals ( sig ) ) { return m ; } } return null ; }
finds the method in specified class by name and signature