diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java index f1a4a6aa5f78..d6fcfd43f006 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/LocalInspectionsPass.java @@ -727,12 +727,12 @@ public class LocalInspectionsPass extends ProgressableTextEditorHighlightingPass ProgressManager.checkCanceled(); final LocalInspectionToolWrapper wrapper = pair.getKey(); final LocalInspectionTool tool = wrapper.getTool(); - if (host != null && myIgnoreSuppressed && SuppressionUtil.inspectionResultSuppressed(host, tool)) { - continue; - } ProblemsHolder holder = new ProblemsHolder(iManager, injectedPsi, isOnTheFly) { @Override public void registerProblem(@NotNull ProblemDescriptor descriptor) { + if (host != null && myIgnoreSuppressed && SuppressionUtil.inspectionResultSuppressed(host, tool)) { + return; + } super.registerProblem(descriptor); if (isOnTheFly && inVisibleRange) { addDescriptorIncrementally(descriptor, wrapper, indicator);