void (SingleRowPassInfo data, TabInfo selected) { data.insets = myTabs.getLayoutInsets(); if (myTabs.isHorizontalTabs()) { data.insets.left += myTabs.getFirstTabOffset(); } final JBTabsImpl.Toolbar selectedToolbar = myTabs.getInfoToToolbar().get(selected); data.hToolbar = new WeakReference<>(selectedToolbar != null && myTabs.getHorizontalSide() && !selectedToolbar.isEmpty() ? selectedToolbar : null); data.vToolbar = new WeakReference<>(selectedToolbar != null && !myTabs.getHorizontalSide() && !selectedToolbar.isEmpty() ? selectedToolbar : null); data.toFitLength = getStrategy().getToFitLength(data); }