public static ListenerInfo create(
        List<Endpoint> rawListeners
    ) {
        return create(Optional.empty(), rawListeners);
    }
Create a ListenerInfo from data in a RegisterBrokerRecord.

@param collection    The record data.

@return              The ListenerInfo object.
metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java