void (@NotNull ProcessEvent event) { if (testsRootNode.isInProgress()) { ApplicationManager.getApplication().invokeLater(() -> { if (event.getExitCode() == 1) { testsRootNode.setTestFailed("", null, false); } else { testsRootNode.setFinished(); } resultsViewer.onBeforeTestingFinished(testsRootNode); resultsViewer.onTestingFinished(testsRootNode); }); } }