@Override
  public boolean isTabHidden(@NotNull TabInfo info) {
    TabLabel label = myTabs.getTabLabel(info);
    Rectangle bounds = label.getBounds();
    int deadzone = JBUI.scale(DEADZONE_FOR_DECLARE_TAB_HIDDEN);
    return bounds.x < -deadzone || bounds.width < label.getPreferredSize().width - deadzone;
  }
@Override
  public boolean isTabHidden(@NotNull TabInfo info)