@Nullable
    private ConsoleViewImpl getMainConsoleView() {
      ExecutionConsole executionConsole = myMainRunContentDescriptor.getExecutionConsole();
      if (executionConsole instanceof ConsoleViewImpl) {
        return (ConsoleViewImpl)executionConsole;
      }
      if (executionConsole instanceof BuildView buildView) {
        Object consoleView = buildView.getConsoleView();
        if (consoleView instanceof ConsoleViewImpl o) {
          return o;
        }
      }
      return null;
    }
@Nullable
    private ConsoleViewImpl getMainConsoleView()