@Override
    protected int preferredTabAreaWidth(int tabPlacement, int height) {
      return calculateMaxTabWidth(tabPlacement);
    }
@Override
    protected int preferredTabAreaWidth(int tabPlacement, int height)