code: public static Method createMethod(Class<?> clazz, String methodName, Class<?>... params) {
      try {
        return clazz.getMethod(methodName, params);
      } catch (NoSuchMethodException | SecurityException e) {
        throw new IllegalArgumentException(e);
      }
    }
docs: Convenience method for retrieving a {@link Method} from a class.
  
  @see Class#getMethod(String, Class...)