void (@NotNull UiDecorator.UiDecoration decoration) { if (decoration.getLabelFont() != null) { setFont(decoration.getLabelFont()); getLabelComponent().setFont(decoration.getLabelFont()); } MergedUiDecoration resultDec = mergeUiDecorations(decoration, JBTabsImpl.defaultDecorator.getDecoration()); setBorder(new EmptyBorder(resultDec.labelInsets())); myLabel.setIconTextGap(resultDec.iconTextGap()); Insets contentInsets = resultDec.contentInsetsSupplier().apply(getActionsPosition()); myLabelPlaceholder.setBorder(new EmptyBorder(contentInsets)); }