private void resolveListeners() {
            Set<String> listeners = Arrays
                .stream(this.envVars.get("KAFKA_LISTENERS").split(","))
                .collect(Collectors.toSet());
            Set<String> listenerSecurityProtocolMap = Arrays
                .stream(this.envVars.get("KAFKA_LISTENER_SECURITY_PROTOCOL_MAP").split(","))
                .collect(Collectors.toSet());

            List<Supplier<String>> listenersToTransform = new ArrayList<>(this.listeners);
            for (int i = 0; i < listenersToTransform.size(); i++) {
                Supplier<String> listenerSupplier = listenersToTransform.get(i);
                String protocol = String.format("%s-%d", PROTOCOL_PREFIX, i);
                String listener = listenerSupplier.get();
                String listenerPort = listener.split(":")[1];
                String listenerProtocol = String.format("%s://0.0.0.0:%s", protocol, listenerPort);
                String protocolMap = String.format("%s:PLAINTEXT", protocol);
                listeners.add(listenerProtocol);
                listenerSecurityProtocolMap.add(protocolMap);

                String host = listener.split(":")[0];
                addNetworkAlias(host);
            }

            String kafkaListeners = String.join(",", listeners);
            String kafkaListenerSecurityProtocolMap = String.join(",", listenerSecurityProtocolMap);

            this.envVars.put("KAFKA_LISTENERS", kafkaListeners);
            this.envVars.put("KAFKA_LISTENER_SECURITY_PROTOCOL_MAP", kafkaListenerSecurityProtocolMap);
        }
Add a {@link Supplier} that will provide a listener with format {@code host:port}.
Host will be added as a network alias.
<p>
The listener will be added to the list of default listeners.
<p>
Default listeners:
<ul>
    <li>0.0.0.0:9092</li>
    <li>0.0.0.0:9093</li>
</ul>
<p>
Default advertised listeners:
<ul>
     <li>{@code container.getHost():container.getMappedPort(9093)}</li>
     <li>{@code container.getConfig().getHostName():9092}</li>
</ul>
@param listenerSupplier a supplier that will provide a listener
@return this {@link KafkaContainer} instance
modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java