docs: public List<Dependency> asList(boolean withChildren) {
          if (withChildren) {
              return new ArrayList<>(asSet());
          } else {
              if (list != null) {
                  return new ArrayList<>(list);
              } else {
                  return new ArrayList<>();
              }
          }
      }