void (BaseLabel label) { String title = ui.window.getStripeTitle(); String suffix = getTitleSuffix(); if (ExperimentalUI.isNewUI()) suffix = null; if (suffix != null) title += suffix; label.setText(title); Border border = JBUI.Borders.empty(0, 2, 0, 7); if (ExperimentalUI.isNewUI()) { border = shouldShowId() ? JBUI.Borders.empty(JBUI.CurrentTheme.ToolWindow.headerLabelLeftRightInsets()) : JBUI.Borders.empty(JBUI.CurrentTheme.ToolWindow.headerTabLeftRightInsets()); } Border oldBorder = label.getBorder(); // Don't update component border (with following revalidation and repainting) if existing border is exactly the same we're going to set if (oldBorder == null || !Objects.equals(oldBorder.getClass(), border.getClass()) || !oldBorder.getBorderInsets(label).equals(border.getBorderInsets(label))) { label.setBorder(border); } label.setVisible(shouldShowId()); }