public NodeList type(ClusterSpec.Type... types) {
        return matching(node -> node.allocation().isPresent() && Set.of(types).contains(node.allocation().get().membership().cluster().type()));
    }
Returns the subset of nodes assigned to the given cluster types
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/NodeList.java