@Override
  public boolean contains(@NotNull VirtualFile file, @NotNull Project project, @Nullable NamedScopesHolder holder) {
    if (holder == null) return false;
    NamedScope scope = holder.getScope(myName);

    if (scope == null) {
      if (!(holder instanceof NamedScopeManager)) {
        return false;
      }

      var sharedScopesHolder = DependencyValidationManager.getInstance(project);
      scope = sharedScopesHolder.getScope(myName);
      if (scope == null) {
        return false;
      }
      holder = sharedScopesHolder;
    }

    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;
  }
@Override
  public boolean contains(@NotNull VirtualFile file, @NotNull Project project, @Nullable NamedScopesHolder holder)