void (@NotNull EditorSchemeAttributeDescriptor attrDescription) { if (!(attrDescription instanceof ColorAndFontDescription description)) return; Color backgroundColor = getBackgroundColor(description); Color ignoredColor = getIgnoredColor(description); Color stripeMarkColor = getStripeMarkColor(description); boolean inheritIgnored = ignoredColor == null; myBackgroundColorPanel.setEnabled(true); myIgnoredColorPanel.setEnabled(!inheritIgnored); myStripeMarkColorPanel.setEnabled(true); myInheritIgnoredCheckBox.setEnabled(true); myBackgroundColorPanel.setSelectedColor(backgroundColor); myIgnoredColorPanel.setSelectedColor(ignoredColor); myStripeMarkColorPanel.setSelectedColor(stripeMarkColor); myInheritIgnoredCheckBox.setSelected(inheritIgnored); }