code: @NullSafe
    public static boolean isMainMethod(Method method) {
  
      return Optional.ofNullable(method).map(localMethod -> MAIN_METHOD_NAME.equals(localMethod.getName())
          && ModifierUtils.isPublic(localMethod)
          && ModifierUtils.isStatic(localMethod)
          && void.class.equals(localMethod.getReturnType())
          && localMethod.getParameterCount() == 1
          && localMethod.getParameterTypes()[0].equals(String[].class))
        .orElse(false);
    }
docs: Determines whether the given Java {@link Class} {@link Method} is the {@literal main} {@link Method}.
  
  @param method {@link Method} to evaluate.
  @return a boolean value indicating whether the given {@link Method}
  is a Java {@link Class} {@literal main} {@link Method}.
  @see java.lang.reflect.Method