From 72c1f21eef74b301f7b2678eb6cdf36e5d20e92c Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Tue, 1 Sep 2015 14:48:47 +0300 Subject: [PATCH] IDEA-144524 Filtering inspections by language removes batch inspections --- .../profile/codeInspection/ui/filter/InspectionsFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/filter/InspectionsFilter.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/filter/InspectionsFilter.java index e80c357c1202..2e873bec81cc 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/filter/InspectionsFilter.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/filter/InspectionsFilter.java @@ -117,7 +117,7 @@ public abstract class InspectionsFilter { return false; } - if (myAvailableOnlyForAnalyze != isAvailableOnlyForAnalyze(tools)) { + if (myAvailableOnlyForAnalyze && !isAvailableOnlyForAnalyze(tools)) { return false; }