TextAttributes (@NotNull IElementType tokenType) { TextAttributes attrs = myAttributesMap.get(tokenType); if (attrs == null) { // let's fetch syntax highlighter attributes for token and merge them with "TEXT" attribute of current color scheme attrs = convertAttributes(getAttributesKeys(tokenType)); myAttributesMap.put(tokenType, attrs); } return attrs; }