void (ColorAndFontDescription description) { Pair<ColorAndFontDescriptorsProvider, ? extends AbstractKeyDescriptor> baseDescriptor = description.getFallbackKeyDescriptor(); if (baseDescriptor != null) { String attrName = baseDescriptor.second.getDisplayName(); String attrLabel = attrName.replaceAll(EditorSchemeAttributeDescriptorWithPath.NAME_SEPARATOR, FontUtil.rightArrow( StartupUiUtil.getLabelFont())); ColorAndFontDescriptorsProvider settingsPage = baseDescriptor.first; String tooltipText; String labelText; HtmlChunk.Element div = HtmlChunk.div("text-align:right").attr("vertical-align", "top"); if (settingsPage != null) { String pageName = settingsPage.getDisplayName(); tooltipText = IdeBundle.message("tooltip.inherited.editor.color.scheme", pageName, attrLabel); labelText = div.children(HtmlChunk.link(pageName, attrLabel), HtmlChunk.br(), HtmlChunk.text("(" + pageName + ")")).toString(); } else { tooltipText = attrLabel; labelText = div.children(HtmlChunk.text(attrLabel), HtmlChunk.br(), HtmlChunk.nbsp()).toString(); } myInheritanceLabel.setVisible(true); myInheritanceLabel.setText(labelText); myInheritanceLabel.getCaret().setDot(0); myInheritanceLabel.setToolTipText(tooltipText); myInheritanceLabel.setEnabled(true); myInheritAttributesBox.setVisible(true); myInheritAttributesBox.setEnabled(description.isEditable()); myInheritAttributesBox.setSelected(description.isInherited()); setEditEnabled(!description.isInherited() && description.isEditable(), description); } else { myInheritanceLabel.setVisible(false); myInheritAttributesBox.setSelected(false); myInheritAttributesBox.setVisible(false); setEditEnabled(description.isEditable(), description); } }