code: public static void assertNoParameters(ReflectionMethod method) {
          final List<ReflectionParameter> parameters = method.getParameters();
          if (!parameters.isEmpty()) {
              final String message = "Class='"+method.getDeclaringClass()+"', method='"+method.getName()+"': Must take no parameters!";
              throw new IllegalArgumentException(message);
          }
      }
docs: Assert that the given method takes no parameters.
  
  @param method Method to assert.
  @throws IllegalArgumentException If the method takes any parameters.