void (@NotNull List<String> args) { isHeadless = isHeadless(args); isCommandLine = isHeadless || (!args.isEmpty() && isGuiCommand(args.get(0))); isLightEdit = "LightEdit".equals(System.getProperty(PLATFORM_PREFIX_PROPERTY)) || (!isCommandLine && isFileAfterOptions(args)); if (isHeadless) { System.setProperty(AWT_HEADLESS, Boolean.TRUE.toString()); } if (args.isEmpty()) { return; } isRemoteDevHost = CWM_HOST_COMMAND.equals(args.get(0)) || CWM_HOST_NO_LOBBY_COMMAND.equals(args.get(0)) || REMOTE_DEV_HOST_COMMAND.equals(args.get(0)) || SPLIT_MODE_COMMAND.equals(args.get(0)); for (String arg : args) { if (DISABLE_NON_BUNDLED_PLUGINS.equalsIgnoreCase(arg)) { disableNonBundledPlugins = true; } else if (DONT_REOPEN_PROJECTS.equalsIgnoreCase(arg)) { dontReopenProjects = true; } } }