public void setTabActions(@NotNull List<AnAction> actions) {
    if (tabToolbar == null) {
      tabToolbar =
          ActionManager.getInstance().createActionToolbar(ActionPlaces.TOOLWINDOW_TITLE, new DefaultActionGroup(tabActionGroup), true);
      ActionToolbarImpl tabToolbarImpl = (ActionToolbarImpl)tabToolbar;
      ToolWindowHeader header = ComponentUtil.getParentOfType(ToolWindowHeader.class, tabComponent);
      tabToolbarImpl.setTargetComponent(header);
      tabToolbarImpl.setForceMinimumSize(true);
      tabToolbarImpl.setLayoutStrategy(ToolbarLayoutStrategy.NOWRAP_STRATEGY);
      tabToolbarImpl.setReservePlaceAutoPopupIcon(false);
      tabToolbarImpl.setOpaque(false);
      tabToolbarImpl.setBorder(JBUI.Borders.empty());
      if (tabComponent.isShowing()) {
        tabComponent.add(tabToolbarImpl);
      }
    }
    tabActionGroup.removeAll();
    tabActionGroup.addSeparator();
    tabActionGroup.addAll(actions);
    tabToolbar.updateActionsImmediately();
  }
public void setTabActions(@NotNull List<AnAction> actions)