public static ClickHouseNodeSelector of(ClickHouseProtocol protocol, ClickHouseProtocol... more) {
        List<ClickHouseProtocol> list = new LinkedList<>();

        if (protocol != null) {
            list.add(protocol);
        }

        if (more != null) {
            for (ClickHouseProtocol p : more) {
                if (p != null) {
                    list.add(p);
                }
            }
        }

        return of(list, null);
    }
Creates a node selector by specifying preferred protocols.

@param protocol preferred protocol
@param more     more protocols
@return non-null node selector
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNodeSelector.java