@Override
    public boolean contains(Object o) {
        if (o instanceof Uuid) {
            Uuid topicId = (Uuid) o;
            TopicImage topicImage = image.getTopic(topicId);
            if (topicImage == null) return false;
            return topicNames.contains(topicImage.name());
        }
        return false;
    }
TopicIds is initialized with topic names (String) but exposes a Set of topic ids (Uuid) to the
user and performs the conversion lazily with TopicsImage.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/TopicIds.java