SimpleTextAttributes (RegistryValue value, boolean isSelected) { boolean changedFromDefault = value.isChangedFromDefault(); if (isSelected) { return new SimpleTextAttributes(changedFromDefault ? SimpleTextAttributes.STYLE_BOLD : SimpleTextAttributes.STYLE_PLAIN, NamedColorUtil.getListSelectionForeground(true)); } if (changedFromDefault) { return new SimpleTextAttributes(SimpleTextAttributes.STYLE_BOLD, JBColor.blue); } return SimpleTextAttributes.REGULAR_ATTRIBUTES; }