void (final @NotNull Map<IElementType, TextAttributesKey> map, final @NotNull IElementType type, final @NotNull TextAttributesKey value) { final TextAttributesKey oldVal = map.put(type, value); if (oldVal != null && !oldVal.equals(value)) { LOG.error("Remapping highlighting for \"" + type + "\" val: old=" + oldVal + " new=" + value); } }