squeeze a tiny bit of concurrency

This commit is contained in:
Alexey Kudravtsev
2018-11-08 15:11:25 +03:00
parent 777ffd721e
commit 2245490dab
@@ -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<Configuration, MatchContext> entry : compiledOptions.entrySet()) {
final Configuration configuration = entry.getKey();