TextAttributes (@Nullable TextAttributes source) { EditorColorsScheme globalScheme = EditorColorsManager.getInstance().getGlobalScheme(); final TextAttributes changedColor = globalScheme.getAttributes(DiffColors.DIFF_MODIFIED); if (source == null) { TextAttributes attrs = globalScheme.getAttributes(DefaultLanguageHighlighterColors.CLASS_NAME).clone(); attrs.setBackgroundColor(changedColor.getBackgroundColor()); return attrs; } TextAttributes clone = source.clone(); clone.setBackgroundColor(changedColor.getBackgroundColor()); return clone; }