public boolean matchAllPreferredTags(Collection<String> tags) {
        if (this.tags.isEmpty() || tags == null) {
            return tags == null || tags.isEmpty();
        }

        return this.tags.containsAll(tags);
    }
Checks if the preferred tags contain all of given tags.

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