boolean (@NotNull VirtualFile file) { PackageSet set = scope.getValue(); if (set == null) return false; Project project = holder.getProject(); if (set instanceof PackageSetBase base) { return base.contains(file, project, holder); } PsiFile psiFile = PackageSetBase.getPsiFile(file, project); return psiFile != null && set.contains(psiFile, holder); }