ConsoleViewImpl (@NotNull DataContext context) { Editor editor = CommonDataKeys.EDITOR.getData(context); if (editor != null) { ConsoleViewImpl console = editor.getUserData(CONSOLE_VIEW_IN_EDITOR_VIEW); if (console != null && console.myState.isRunning()) { return console; } } return null; }