void (@NotNull ProgressIndicator indicator) { final StatisticsResult result = send(); final StatisticsResult.ResultCode code = result.getCode(); if (code == StatisticsResult.ResultCode.SENT_WITH_ERRORS || code == StatisticsResult.ResultCode.SEND) { final boolean succeed = tryToOpenInScratch(project, result.getDescription()); if (succeed) { return; } } ApplicationManager.getApplication().invokeLater( () -> Messages.showMultilineInputDialog(project, "Result: " + code, "Statistics Result", StringUtil.replace(result.getDescription(), ";", "\n"), null, null), ModalityState.nonModal(), project.getDisposed()); }