void (@Nullable TextRange range, @NotNull String text, @Nullable EditorEx editor) { if (range == null) { ((LanguageConsoleImpl)myConsoleView).doAddPromptToHistory(); myConsoleView.print(text, ConsoleViewContentType.USER_INPUT); if (!text.endsWith("\n")) { myConsoleView.print("\n", ConsoleViewContentType.USER_INPUT); } } else { assert editor != null; ((LanguageConsoleImpl)myConsoleView).addTextRangeToHistory(range, editor, myExecuteActionHandler.myPreserveMarkup); } myExecuteActionHandler.addToCommandHistoryAndExecute(myConsoleView, text); }