public boolean match(ClickHouseNode node) {
        boolean matched = false;

        if (node != null) {
            matched = matchAnyOfPreferredProtocols(node.getProtocol()) && matchAllPreferredTags(node.getTags());
        }

        return matched;
    }
Checks if the given node matches any of preferred protocols and tags.

@param node node to check
@return true if the node matches at least one of preferred protocols and
        tags; false otherwise
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNodeSelector.java