Source:
<code>public static void main(final String[] args) { checkNotNull(args); checkState( !GraphicsEnvironment.isHeadless(), "UI client launcher invoked from headless environment. This is currently " + "prohibited by design to avoid UI rendering errors in the headless environment."); Thread.setDefaultUncaughtExceptionHandler( (t, e) -> log.log(Level.SEVERE, e.getLocalizedMessage(), e)); ClientSetting.initialize(); LoggerManager.setLogLevel( ClientSetting.loggingVerbosity.getValue().map(Level::parse).orElse(Level.INFO)); Interruptibles.await(() -> SwingAction.invokeAndWait(LookAndFeel::initialize)); if (!ClientSetting.useExperimentalJavaFxUi.getValueOrThrow()) { Interruptibles.await( () -> SwingAction.invokeAndWait( () -> { ConsoleConfiguration.initialize(); ErrorMessage.initialize(); })); } ArgParser.handleCommandLineArgs(args); if (SystemProperties.isMac()) { MacOsIntegration.setOpenUriHandler( uri -> { final String mapName = URLDecoder.decode( uri.toString().substring(ArgParser.TRIPLEA_PROTOCOL.length()), StandardCharsets.UTF_8); SwingUtilities.invokeLater( () -> DownloadMapsWindow.showDownloadMapsWindowAndDownload(mapName)); }); MacOsIntegration.setOpenFilesHandler( <START> list -> <END> list.stream() .findAny() .ifPresent( file -> { System.setProperty(CliProperties.TRIPLEA_GAME, file.getAbsolutePath()); GameRunner.showMainFrame(); })); } if (HttpProxy.isUsingSystemProxy()) { HttpProxy.updateSystemProxy(); } if (ClientSetting.useExperimentalJavaFxUi.getValueOrThrow()) { Application.launch(TripleA.class, args); } else { GameRunner.start(); } }</code><technical_language>is this a list? noting picking element find ordering dependencies other incorrect behavior. Is this cover if a person selects files opens all</technical_language>

Target:
public static void main(final String[] args) { checkNotNull(args); checkState( !GraphicsEnvironment.isHeadless(), "UI client launcher invoked from headless environment. This is currently " + "prohibited by design to avoid UI rendering errors in the headless environment."); Thread.setDefaultUncaughtExceptionHandler( (t, e) -> log.log(Level.SEVERE, e.getLocalizedMessage(), e)); ClientSetting.initialize(); LoggerManager.setLogLevel( ClientSetting.loggingVerbosity.getValue().map(Level::parse).orElse(Level.INFO)); Interruptibles.await(() -> SwingAction.invokeAndWait(LookAndFeel::initialize)); if (!ClientSetting.useExperimentalJavaFxUi.getValueOrThrow()) { Interruptibles.await( () -> SwingAction.invokeAndWait( () -> { ConsoleConfiguration.initialize(); ErrorMessage.initialize(); })); } ArgParser.handleCommandLineArgs(args); if (SystemProperties.isMac()) { MacOsIntegration.setOpenUriHandler( uri -> { final String mapName = URLDecoder.decode( uri.toString().substring(ArgParser.TRIPLEA_PROTOCOL.length()), StandardCharsets.UTF_8); SwingUtilities.invokeLater( () -> DownloadMapsWindow.showDownloadMapsWindowAndDownload(mapName)); }); MacOsIntegration.setOpenFileHandler( file -> { System.setProperty(CliProperties.TRIPLEA_GAME, file.getAbsolutePath()); GameRunner.showMainFrame(); }); } if (HttpProxy.isUsingSystemProxy()) { HttpProxy.updateSystemProxy(); } if (ClientSetting.useExperimentalJavaFxUi.getValueOrThrow()) { Application.launch(TripleA.class, args); } else { GameRunner.start(); } }