docs: private void aggregate(ArrayList<Privilege> list, Privilege p) {
          list.add(p);
          if (p.isAggregate()) {
              for (Privilege ap : p.getDeclaredAggregatePrivileges()) {
                  aggregate(list, ap);
              }
          }
      }