void (MultiMap<IElementType, TextAttributesKey> map, EmbeddedTokenHighlighter highlighter) { MultiMap<IElementType, TextAttributesKey> attributes = highlighter.getEmbeddedTokenAttributes(); for (Map.Entry<IElementType, Collection<TextAttributesKey>> entry : attributes.entrySet()) { if (!map.containsKey(entry.getKey())) { map.putValues(entry.getKey(), entry.getValue()); } } }