private static void updateNavBar(ServiceViewContentHolder holder) {
    Wrapper wrapper = holder.toolWindowHeaderSideComponent;
    if (wrapper == null) return;

    ToolWindow toolWindow = ToolWindowManager.getInstance(holder.mainView.getProject()).getToolWindow(holder.toolWindowId);
    if (toolWindow == null) return;

    Content content = holder.contentManager.getSelectedContent();
    ServiceView serviceView = content == null ? null : getServiceView(content);
    if (serviceView == null) {
      wrapper.setContent(null);
    }
    else {
      ToolWindowContentUiType type = toolWindow.getContentUiType();
      boolean isSideComponent = type == ToolWindowContentUiType.COMBO || holder.contentManager.getContentCount() == 1;
      if (isSideComponent) {
        JComponent navBar = serviceView.getUi().updateNavBar(isSideComponent);
        wrapper.setContent(navBar);
      }
      else {
        wrapper.setContent(null);
        serviceView.getUi().updateNavBar(isSideComponent);
      }
    }
  }
private static void updateNavBar(ServiceViewContentHolder holder)