void () { // "upper" and "bottom" parts of console both need padding in command mode myProcessHandler = null; setPrompt(getTitle() + " > "); ApplicationManager.getApplication().invokeAndWait(() -> { notifyStateChangeListeners(); configureLeftBorder(true, getConsoleEditor(), getHistoryViewer()); setLanguage(CommandLineLanguage.INSTANCE); final CommandLineFile file = PyUtil.as(getFile(), CommandLineFile.class); resetConsumer(null); if (file == null || myCommandsInfo == null) { return; } file.setCommands(myCommandsInfo.getCommands()); final CommandConsole console = this; resetConsumer(new CommandModeConsumer(myCommandsInfo.getCommands(), myModule, console, myCommandsInfo.getUnknownCommandsExecutor())); }, ModalityState.nonModal()); }