mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
follow IDEA-CR-23905
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user