@Nullable
    private static ConsoleViewImpl getRunningConsole(@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() && !console.myIsViewer) {
          return console;
        }
      }
      return null;
    }
@Nullable
    private static ConsoleViewImpl getRunningConsole(@NotNull DataContext context)