@Override
    public boolean contains(@NotNull VirtualFile file) {
      if (!myAllScope.contains(file)) return false;
      Project project = getProject();
      NamedScopesHolder holder = NamedScopeManager.getInstance(Objects.requireNonNull(project));
      final PackageSet packageSet = mySet.getValue();
      if (packageSet != null) {
        if (packageSet instanceof PackageSetBase) return ((PackageSetBase)packageSet).contains(file, project, holder);
        PsiFile psiFile = myManager.findFile(file);
        return psiFile != null && packageSet.contains(psiFile, holder);
      }
      return false;
    }
@Override
    public boolean contains(@NotNull VirtualFile file)