@Override
  public @Nullable JComponent getToolbarContextComponent() {
    final ConsoleView console = getConsole();
    return console == null ? null : console.getComponent();
  }
@Override
  public @Nullable JComponent getToolbarContextComponent()