private boolean isCollection(Type type) {
        if (type instanceof ParameterizedType t) {
            return (t.getRawType().equals(java.util.Collection.class) && t.getActualTypeArguments().length == 1);
        }
        return false;
    }
This adds dependencies base on constructor arguments in the model classes themselves.
These then have to be created by this mini-di framework and then handed to the builders
that will fill them.

TODO: This should be changed to model dependencies between model builders instead, such
that they can create their model objects, and eventually make them immutable.
config-model/src/main/java/com/yahoo/config/model/graph/ModelNode.java