private static void addScopesToList(final @NotNull List<? super Pair<NamedScope, NamedScopesHolder>> scopeList,
                                      final @NotNull NamedScopesHolder holder) {
    for (NamedScope scope : holder.getScopes()) {
      scopeList.add(Pair.create(scope, holder));
    }
  }
private static void addScopesToList(final @NotNull List<? super Pair<NamedScope, NamedScopesHolder>> scopeList,
                                      final @NotNull NamedScopesHolder holder)