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

@see Class#getMethod(String, Class...)