public static Predicate<Node> from(HostFilter filter) {
        Objects.requireNonNull(filter, "filter cannot be null, use HostFilter.all()");
        return node -> filter.matches(
                node.hostname(),
                node.flavor().name(),
                node.allocation().map(Allocation::membership));
    }
Creates a node filter which filters using the given host filter
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/node/filter/NodeHostFilter.java