void (@NotNull TerminalWidget terminalWidget, @NotNull String errorMessage, @NotNull Exception e) { LOG.info(errorMessage, e); @Nls StringBuilder message = new StringBuilder(); message.append("\n"); message.append(errorMessage).append("\n").append(e.getMessage()).append("\n\n"); WinPtyException winptyException = ExceptionUtil.findCause(e, WinPtyException.class); if (winptyException != null) { message.append(winptyException.getMessage()).append("\n\n"); } terminalWidget.writePlainMessage(message.toString()); terminalWidget.writePlainMessage("\n" + TerminalBundle.message("see.ide.log.error.description", ShowLogAction.getActionName()) + "\n"); ApplicationManager.getApplication().invokeLater(() -> { terminalWidget.setCursorVisible(false); }, myProject.getDisposed()); }