TextAttributes () { return mergedTextAttributes.computeIfAbsent(newKey, contentKey -> { EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); TextAttributes result = scheme.getAttributes(HighlighterColors.TEXT); for (TextAttributesKey key : textAttributeKeys.get(contentKey)) { TextAttributes attributes = scheme.getAttributes(key); if (attributes != null) { result = TextAttributes.merge(result, attributes); } } return result; }); }