From 2245490dabe2b309543e5f551e06bf5ad8545ac7 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Thu, 8 Nov 2018 14:25:18 +0300 Subject: [PATCH] squeeze a tiny bit of concurrency --- .../inspection/highlightTemplate/SSBasedInspection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/structuralsearch/source/com/intellij/structuralsearch/inspection/highlightTemplate/SSBasedInspection.java b/platform/structuralsearch/source/com/intellij/structuralsearch/inspection/highlightTemplate/SSBasedInspection.java index e3e0e29cba18..aa2fbdf72472 100644 --- a/platform/structuralsearch/source/com/intellij/structuralsearch/inspection/highlightTemplate/SSBasedInspection.java +++ b/platform/structuralsearch/source/com/intellij/structuralsearch/inspection/highlightTemplate/SSBasedInspection.java @@ -96,8 +96,8 @@ public class SSBasedInspection extends LocalInspectionTool { @Override public void visitElement(PsiElement element) { + if (LexicalNodesFilter.getInstance().accepts(element)) return; synchronized (LOCK) { - if (LexicalNodesFilter.getInstance().accepts(element)) return; final SsrFilteringNodeIterator matchedNodes = new SsrFilteringNodeIterator(element); for (Map.Entry entry : compiledOptions.entrySet()) { final Configuration configuration = entry.getKey();