private void reassignPartition(TopicIdPartition partition, String newMember) {
        String member = partitionOwnerInTargetAssignment.get(partition);
        // Find the correct partition movement considering the stickiness requirement.
        TopicIdPartition partitionToBeMoved = partitionMovements.computeActualPartitionToBeMoved(
            partition,
            member,
            newMember
        );
        processPartitionMovement(partitionToBeMoved, newMember);
    }
Reassigns the given partition to a new member while considering partition movements and stickiness.
<p>
This method performs the following actions:
<ol>
  <li> Determines the current owner of the partition. </li>
  <li> Identifies the correct partition to move, adhering to stickiness constraints. </li>
  <li> Processes the partition movement to the new member. </li>
</ol>

@param partition     The {@link TopicIdPartition} to be reassigned.
@param newMember     The Id of the member to which the partition should be reassigned.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/assignor/UniformHeterogeneousAssignmentBuilder.java