private static Predicate<Node> makePredicate(List<Node> nodes) {
        Objects.requireNonNull(nodes, "nodes cannot be null");
        Set<Node> nodesSet = Set.copyOf(nodes);
        return nodesSet::contains;
    }
A node filter which matches a particular list of nodes

@author bratseth
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/filter/NodeListFilter.java