JDK-8261785 raised the question if such method should be allowed in launcher.
The static method is allowed in local and anonymous class by JEP-395, so that it's possible to define 'main' method and launched with `java` command as long as user can specify the class.