private NamedScope getScope(@Nullable String name, @NotNull State state) {
    final NamedScope scope = super.getScope(name);
    if (scope == null) {
      final PackageSet packageSet = state.unnamedScopes.get(name);
      if (packageSet != null) {
        return new NamedScope.UnnamedScope(packageSet);
      }
    }
    //compatibility for predefined scopes: rename Project -> All
    if (scope == null && Comparing.strEqual(name, "Project")) {
      return super.getScope("All");
    }
    return scope;
  }
private NamedScope getScope(@Nullable String name, @NotNull State state)