void () { try { parseTestResults(() -> { try { return new InputStreamReader(new FileInputStream(myFile), StandardCharsets.UTF_8); } catch (FileNotFoundException e) { return null; } }, getProcessor()); } catch (IOException e) { final String message = e.getMessage(); ApplicationManager.getApplication().invokeLater( () -> Messages.showErrorDialog(myConsoleProperties.getProject(), message, SmRunnerBundle.message("sm.test.runner.imported.to.general.failed.to.parse.error.title", myFile.getName()))); } }