void (List<TabInfo> list, TablePassInfo data) { for (TabInfo info : list) { TabLabel eachLabel = myTabs.getTabLabel(info); Dimension size = eachLabel.isPinned() && showPinnedTabsSeparately() ? eachLabel.getNotStrictPreferredSize() : eachLabel.getPreferredSize(); data.lengths.put(info, Math.max(getMinTabWidth(), size.width + myTabs.getTabHGap())); } }