Rectangle (final SingleRowPassInfo data) { Dimension entryPointSize = myTabs.getEntryPointPreferredSize(); Dimension moreToolbarSize = myTabs.getMoreToolbarPreferredSize(); Insets insets = myTabs.getActionsInsets(); if (ExperimentalUI.isNewUI()) { return new Rectangle(myTabs.getHeaderFitSize().width - entryPointSize.width - moreToolbarSize.width - data.insets.right - insets.right - 1, myTabs.getHeight() - moreToolbarSize.height - data.insets.bottom - insets.bottom, moreToolbarSize.width, moreToolbarSize.height); } else { return new Rectangle(data.insets.left + JBTabsImpl.getSelectionTabVShift(), myTabs.getHeight() - moreToolbarSize.height - entryPointSize.height - data.insets.bottom - insets.bottom - insets.top, myTabs.getHeaderFitSize().width, moreToolbarSize.height); } }