code: @SuppressWarnings({"ThrowableInstanceNeverThrown"})
      public static void validateIsStatic(Method method, List<Throwable> errors)
      {
          if (!Modifier.isStatic(method.getModifiers()))
          {
              errors.add(new Exception("Method " + method.getName() + "() should be static"));
          }
          if (!Modifier.isPublic(method.getDeclaringClass().getModifiers()))
          {
              errors.add(new Exception("Class " + method.getDeclaringClass().getName() + " should be public"));
          }
      }
docs: Validate that a method is static.
  
  @param method the method to be tested
  @param errors a list to place the errors