code: public static Method lookupMethod( Class parentClass, String methodName, Class[] signature )
      {
          try
          {
              return parentClass.getDeclaredMethod( methodName, signature );
          }
          catch ( NoSuchMethodException e )
          {
              Class superClass = parentClass.getSuperclass();
              return superClass != null ? lookupMethod( superClass, methodName, signature ) : null;
          }
      }
docs: Get a Method in a Class.
  
  @param parentClass the Class in which to find the Method.
  @param methodName the name of the Method.
  @param signature the argument types for the Method.
  @return the Method with the given name and signature, or <code>null</code> if the method does not exist.