@Override
      public void contentAdded(@NotNull ContentManagerEvent event) {
        JComponent component = event.getContent().getComponent();
        setToolbarVisible(Collections.singletonList(component), isToolbarVisible(toolWindow, properties));

        // support nested content managers, e.g. RunnerLayoutUi as content component
        ContentManager contentManager = ContentManagerImpl.getContentManager(component);
        if (contentManager != null) {
          contentManager.addContentManagerListener(this);
        }
      }
@Override
      public void contentAdded(@NotNull ContentManagerEvent event)