public List<TopicPartition> partitions() {
            return IntStream.range(0, partitions)
                    .mapToObj(i -> new TopicPartition(name, i))
                    .collect(Collectors.toList());
        }
Find existing topics with the given prefix.
tools/src/main/java/org/apache/kafka/tools/automq/perf/TopicService.java