void () { myLabel.setBorder(JBUI.Borders.empty(1, 10, 2, 10)); if (isExperimentalUI && isPopup) { myLabel.setFont(JBFont.label().deriveFont(Font.BOLD)); Insets insets = JBUI.CurrentTheme.Popup.headerInsets(); setBorder(BorderFactory.createEmptyBorder(0, insets.left, 0, insets.right)); myLabel.setBorder(BorderFactory.createEmptyBorder(insets.top, 0, insets.bottom, 0)); } }