private SortedSet<TopicPartition> toTopicPartitionSet(SortedSet<TopicIdPartition> topicIdPartitions) {
        SortedSet<TopicPartition> result = new TreeSet<>(TOPIC_PARTITION_COMPARATOR);
        topicIdPartitions.forEach(topicIdPartition -> result.add(topicIdPartition.topicPartition()));
        return result;
    }
Build set of {@link TopicPartition} from the given set of {@link TopicIdPartition}.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareMembershipManager.java