Dimension () { final Dimension size = super.getPreferredSize(); final Dimension offsets = myUI.getOffsets(this); int width = size.width + offsets.width; if (ExperimentalUI.isNewUI() && !isFirstElement() && !isPopupElement) { width += CHEVRON_ICON.getIconWidth() + JBUI.CurrentTheme.StatusBar.Breadcrumbs.CHEVRON_INSET.get(); } if (!needPaintIcon() && myIcon != null) { width -= myIcon.getIconWidth() + (ExperimentalUI.isNewUI() ? getIconTextGap() : 0); } return new Dimension(width, size.height + offsets.height); }