private Pair<NamedScopesHolder,NamedScope> resolveScope(@NotNull Project project) {
    NamedScopesHolder holder = DependencyValidationManager.getInstance(project);
    NamedScope scope = holder.getScope(myScopeId);
    if (scope == null) {
      holder = NamedScopeManager.getInstance(project);
      scope = holder.getScope(myScopeId);
    }
    return scope != null ? Pair.create(holder, scope) : null;
  }
private Pair<NamedScopesHolder,NamedScope> resolveScope(@NotNull Project project)