void () { if (myForceHideUiWhenSessionEnds || TerminalOptionsProvider.getInstance().getCloseSessionOnLogout()) { myTerminalToolWindowManager.closeTab(myContent); } else { String text = getSessionCompletedMessage(myTerminalWidget); myTerminalWidget.writePlainMessage("\n" + text + "\n"); myTerminalWidget.setCursorVisible(false); } }