boolean (@NotNull VirtualFile file, @NotNull Project project, @Nullable NamedScopesHolder holder) { if (holder == null) return false; final NamedScope scope = holder.getScope(myName); if (scope != null) { final PackageSet packageSet = scope.getValue(); if (packageSet != null) { return packageSet instanceof PackageSetBase ? ((PackageSetBase)packageSet).contains(file, project, holder) : packageSet.contains(getPsiFile(file, project), holder); } } return false; }