public Endpoint firstListener() {
        if (listeners.isEmpty()) {
            throw new RuntimeException("No listeners found.");
        }
        return listeners.values().iterator().next();
    }
An ordered map containing all of the listeners. The first listener is special, indicating
either the inter-broker or inter-controller listener.
metadata/src/main/java/org/apache/kafka/metadata/ListenerInfo.java