Node (String id, List<Configurable> configurables) { List<Node> children = new ArrayList<>(); for (Configurable configurable : configurables) { children.add(node(configurable)); } return new Node(id, children); }