void (boolean isRestart) { if (!isRestart && !PluginManagerCore.isRunningFromSources() && isSendingOnExitEnabled()) { List<StatisticsEventLoggerProvider> enabledLoggerProviders = ContainerUtil.filter(StatisticsEventLogProviderUtil.getEventLogProviders(), p -> p.isSendEnabled() && p.getSendLogsOnIdeClose()); if (!enabledLoggerProviders.isEmpty() && !isUpdateInProgress()) { ProgressManager.getInstance().run(new Task.Modal(null, "Starting External Log Uploader", false) { @Override public void run(@NotNull ProgressIndicator indicator) { EventLogExternalUploader.INSTANCE.startExternalUpload( enabledLoggerProviders, StatisticsUploadAssistant.isUseTestStatisticsConfig(), StatisticsUploadAssistant.isUseTestStatisticsSendEndpoint()); } }); } } }