@Override
    public int getToFitLength(final SingleRowPassInfo data) {
      int length = myTabs.getWidth() - data.insets.left - data.insets.right;
      JComponent hToolbar = data.hToolbar.get();
      if (hToolbar != null) {
        length -= hToolbar.getMinimumSize().width;
      }
      JComponent hfToolbar = data.hfToolbar.get();
      if (hfToolbar != null) {
        length -= hfToolbar.getPreferredSize().width;
      }
      length += getStartPosition(data);
      int entryPointWidth = myTabs.getEntryPointPreferredSize().width;
      Insets toolbarInsets = myTabs.getActionsInsets();
      int insets = toolbarInsets.left + toolbarInsets.right;
      length -= (entryPointWidth + insets * Math.signum(entryPointWidth));
      return length;
    }
@Override
    public int getToFitLength(final SingleRowPassInfo data)