private static boolean isApplicable(Method method,Class[] classes){
  Class[] methodArgs=method.getParameterTypes();
  if (methodArgs.length != classes.length) {
    return false;
  }
  for (int i=0; i < classes.length; ++i) {
    if (!isMethodInvocationConvertible(methodArgs[i],classes[i])) {
      return false;
    }
  }
  return true;
}

private static boolean isApplicable ( Method method , Class [ ] classes ) { Class [ ] methodArgs = method . getParameterTypes ( ) ; if ( methodArgs . length != classes . length ) { return false ; } for ( int i = 0 ; i < classes . length ; ++ i ) { if ( ! isMethodInvocationConvertible ( methodArgs [ i ] , classes [ i ] ) ) { return false ; } } return true ; }
returns true if the supplied method is applicable to actual argument types .
