diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java index facb75db5f96..ccb3a30ae3a7 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java @@ -38,6 +38,7 @@ public class TemplateContext { private static class ContextInterner { private static final Map internMap = Arrays.stream(TemplateContextType.EP_NAME.getExtensions()) .map(TemplateContextType::getContextId) + .distinct() .collect(Collectors.toMap(Function.identity(), Function.identity())); }