SimpleTextAttributes (T scheme) { SchemesModel<T> model = mySchemesPanel.getModel(); SimpleTextAttributes baseAttributes = !useBoldForNonRemovableSchemes() || model.canDeleteScheme(scheme) ? SimpleTextAttributes.REGULAR_ATTRIBUTES : SimpleTextAttributes.REGULAR_BOLD_ATTRIBUTES; if (mySchemesPanel.highlightNonDefaultSchemes() && model.canResetScheme(scheme) && model.differsFromDefault(scheme)) { return baseAttributes.derive(-1, MODIFIED_ITEM_FOREGROUND, null, null); } return baseAttributes; }