code: private Method methodExists(Class<?> clazz, String method, Class<?>[] params) {
  		try {
  			return clazz.getMethod(method, params);
  		} catch (NoSuchMethodException e) {
  			return null;
  		}
  	}
docs: Checks if a class method exists.
  
  @param clazz
  Class.
  @param method
  Method.
  @param params
  Method's params.
  @return the method, or null if it doesn't exist.