diff --git a/platform/lang-impl/src/com/intellij/codeInspection/ui/RefElementNode.java b/platform/lang-impl/src/com/intellij/codeInspection/ui/RefElementNode.java index 96b0b9b5f450..0da10d66239e 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/ui/RefElementNode.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/ui/RefElementNode.java @@ -119,7 +119,7 @@ public class RefElementNode extends SuppressableInspectionTreeNode { @Override public int getProblemCount() { - return isLeaf() ? 1 : super.getProblemCount(); + return isLeaf() ? myPresentation.getIgnoredRefElements().contains(getElement()) ? 0 : 1 : super.getProblemCount(); } @Override