public void replay(
        ConsumerGroupTargetAssignmentMemberKey key,
        ConsumerGroupTargetAssignmentMemberValue value,
        GroupType groupType
    ) {
        String groupId = key.groupId();
        String memberId = key.memberId();
        ModernGroup<?> group = getOrMaybeCreatePersistedGroup(groupId, false, groupType);

        if (value != null) {
            group.updateTargetAssignment(memberId, Assignment.fromRecord(value));
        } else {
            group.removeTargetAssignment(memberId);
        }
    }
Replays ConsumerGroupTargetAssignmentMemberKey/Value to update the hard state of
the modern group. It updates the target assignment of the member or deletes it.

@param key   A ConsumerGroupTargetAssignmentMemberKey key.
@param value A ConsumerGroupTargetAssignmentMemberValue record.
@param groupType GroupType (Consumer or Share) for the record.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/GroupMetadataManager.java