void (@NotNull ProcessEvent event) { myAttachedToProcess.set(false); ApplicationManager.getApplication().invokeLater(() -> { myTerminalWidget.getTerminalPanel().setCursorVisible(false); }, ModalityState.any()); }