@Override
  public @Nullable JComponent updateNavBar(boolean isSideComponent) {
    if (myNavBarWrapper != null) {
      if (isSideComponent) {
        if (myNavBarWrapper.getParent() == myNavBarPanel) {
          myNavBarPanel.remove(myNavBarWrapper);
        }
      }
      else if (myNavBarWrapper.getParent() != myNavBarPanel) {
        myNavBarPanel.add(myNavBarWrapper, BorderLayout.CENTER);
      }
      myNavBarWrapper.updateScrollPaneBorder(isSideComponent);
      setNavBarPanelVisible();
    }
    return myNavBarWrapper;
  }
@Override
  public @Nullable JComponent updateNavBar(boolean isSideComponent)