@Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            Topic topic = (Topic) o;
            return partitions == topic.partitions && Objects.equals(name, topic.name);
        }
Find existing topics with the given prefix.
tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java