follow IDEA-CR-23905

This commit is contained in:
Anna.Kozlova
2017-08-18 10:07:12 +02:00
parent f27c69e0d6
commit d1a06b3d80
@@ -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;
}
});
}