public void updateTargetAssignment(String memberId, Assignment newTargetAssignment) {
        updateInvertedTargetAssignment(
            memberId,
            targetAssignment.getOrDefault(memberId, new Assignment(Collections.emptyMap())),
            newTargetAssignment
        );
        targetAssignment.put(memberId, newTargetAssignment);
    }
Updates target assignment of a member.

@param memberId              The member id.
@param newTargetAssignment   The new target assignment.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroup.java