static ClickHouseClient newInstance(ClickHouseCredentials defaultCredentials,
            ClickHouseProtocol... preferredProtocols) {
        return builder()
                .nodeSelector(ClickHouseNodeSelector.of(null, preferredProtocols))
                .defaultCredentials(defaultCredentials)
                .build();
    }
Creates a new instance with default credentials compatible with any of the
given protocols.

@param defaultCredentials default credentials
@param preferredProtocols preferred protocols
@return new instance compatible with any of the given protocols using default
        credentials
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseClient.java