protected void prepareLayoutPassInfo(SingleRowPassInfo data, TabInfo selected) {
    data.insets = tabs.getLayoutInsets();
    if (tabs.isHorizontalTabs()) {
      data.insets.left += tabs.getFirstTabOffset();
    }

    JBTabsImpl.Toolbar selectedForeToolbar = tabs.infoToForeToolbar.get(selected);
    data.hfToolbar =
      new WeakReference<>(
        selectedForeToolbar != null && tabs.getHorizontalSide() && !selectedForeToolbar.isEmpty() ? selectedForeToolbar : null);

    final JBTabsImpl.Toolbar selectedToolbar = tabs.getInfoToToolbar().get(selected);
    data.hToolbar =
      new WeakReference<>(selectedToolbar != null && tabs.getHorizontalSide() && !selectedToolbar.isEmpty() ? selectedToolbar : null);
    data.vToolbar =
      new WeakReference<>(selectedToolbar != null && !tabs.getHorizontalSide() && !selectedToolbar.isEmpty() ? selectedToolbar : null);
    data.toFitLength = getStrategy().getToFitLength(data);
  }
protected void prepareLayoutPassInfo(SingleRowPassInfo data, TabInfo selected)