public boolean match(ClickHouseClient client) {
        boolean matched = false;

        if (client != null) {
            for (ClickHouseProtocol p : protocols) {
                log.debug("Checking [%s] against [%s]...", client, p);
                if (client.accept(p)) {
                    matched = true;
                    break;
                }
            }
        }

        return matched;
    }
Test if the given client supports any of {@link #getPreferredProtocols()}.
It's always {@code false} if either the client is null or there's no
preferred protocol.

@param client client to test
@return true if any of the preferred protocols is supported by the client
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNodeSelector.java