code: public static void assertNoParameters(final Method method, Class<? extends Annotation> annotation) 
     {
        if (method.getParameterTypes().length != 0)
        {
           throw annotation == null ? MESSAGES.methodHasToHaveNoParameters(method) : MESSAGES.methodHasToHaveNoParameters2(method, annotation);
        }
     }
docs: Asserts method have no parameters.
  
  @param method to validate
  @param annotation annotation to propagate in exception message