public static Method findDeclaredMethod(Class<?> cl,Method testMethod){
  if (cl == null)   return null;
  for (  Method method : cl.getDeclaredMethods()) {
    if (isMatch(method,testMethod))     return method;
  }
  return null;
}

public static Method findDeclaredMethod ( Class < ? > cl , Method testMethod ) { if ( cl == null ) return null ; for ( Method method : cl . getDeclaredMethods ( ) ) { if ( isMatch ( method , testMethod ) ) return method ; } return null ; }
finds any method matching the method name and parameter types .
