private ShareGroupHeartbeatResponseData.Assignment createShareGroupResponseAssignment(
        ShareGroupMember member
    ) {
        return new ShareGroupHeartbeatResponseData.Assignment()
            .setTopicPartitions(fromShareGroupAssignmentMap(member.assignedPartitions()));
    }
Deserialize the subscription in JoinGroupRequestProtocolCollection.
All the protocols have the same subscription, so the method picks a random one.

@param protocols The JoinGroupRequestProtocolCollection.
@return The ConsumerProtocolSubscription.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java