void (@NotNull String command) { for (String line : command.trim().split("\n")) { myConsoleView.print("> ", ConsoleViewContentType.USER_INPUT); myConsoleView.print(line, ConsoleViewContentType.USER_INPUT); myConsoleView.print("\n", ConsoleViewContentType.NORMAL_OUTPUT); } ApplicationManager.getApplication().executeOnPooledThread( () -> send(myProcessHandler, StringUtil.replace(command, "\n", "###\\n")) ); }