public boolean matchAnyOfPreferredTags(Collection<String> tags) {
        boolean matched = tags == null || tags.isEmpty();

        if (!matched) {
            for (String t : tags) {
                if (this.tags.contains(t)) {
                    matched = true;
                    break;
                }
            }
        }

        return matched;
    }
Checks if the preferred tags contain any of given tags.

@param tags tags to check
@return true if the preferred tags contain any of given tags; false otherwise
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNodeSelector.java