From d1a06b3d800d1589b2ad8ee882eb9fadc52f22ec Mon Sep 17 00:00:00 2001 From: "Anna.Kozlova" Date: Fri, 18 Aug 2017 10:02:48 +0200 Subject: [PATCH] follow IDEA-CR-23905 --- .../src/com/intellij/codeInspection/GlobalInspectionTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/analysis-api/src/com/intellij/codeInspection/GlobalInspectionTool.java b/platform/analysis-api/src/com/intellij/codeInspection/GlobalInspectionTool.java index b0bf48970892..106b09c8b83d 100644 --- a/platform/analysis-api/src/com/intellij/codeInspection/GlobalInspectionTool.java +++ b/platform/analysis-api/src/com/intellij/codeInspection/GlobalInspectionTool.java @@ -87,14 +87,14 @@ public abstract class GlobalInspectionTool extends InspectionProfileEntry { if (refEntity instanceof RefElement) { SmartPsiElementPointer pointer = ((RefElement)refEntity).getPointer(); if (pointer != null) { - if (scope.contains(pointer.getVirtualFile())) return true; + if (!scope.contains(pointer.getVirtualFile())) return false; } else { RefEntity owner = refEntity.getOwner(); return owner == null || isInScope(owner); } } - return false; + return true; } }); }