diff --git a/xml/xml-analysis-impl/src/com/intellij/codeInsight/daemon/impl/tagTreeHighlighting/XmlTagTreeHighlightingColors.java b/xml/xml-analysis-impl/src/com/intellij/codeInsight/daemon/impl/tagTreeHighlighting/XmlTagTreeHighlightingColors.java index e160481d40d3..cc547e437f3d 100644 --- a/xml/xml-analysis-impl/src/com/intellij/codeInsight/daemon/impl/tagTreeHighlighting/XmlTagTreeHighlightingColors.java +++ b/xml/xml-analysis-impl/src/com/intellij/codeInsight/daemon/impl/tagTreeHighlighting/XmlTagTreeHighlightingColors.java @@ -34,7 +34,7 @@ public class XmlTagTreeHighlightingColors { } @NotNull - public static ColorKey[] getColorKeys() { + public static synchronized ColorKey[] getColorKeys() { final int levelCount = WebEditorOptions.getInstance().getTagTreeHighlightingLevelCount(); if (ourColorKeys == null || ourColorKeys.length != levelCount) {