public KafkaContainer withKraft() {
        if (this.externalZookeeperConnect != null) {
            throw new IllegalStateException("Cannot configure Kraft mode when Zookeeper configured");
        }
        verifyMinKraftVersion();
        this.kraftEnabled = true;
        return self();
    }
@deprecated use {@link #KafkaContainer(DockerImageName)} instead
modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java