public static boolean hasAssignedPartitionsChanged(
        ModernGroupMember member1,
        ModernGroupMember member2
    ) {
        return !member1.assignedPartitions().equals(member2.assignedPartitions());
    }
@return True of the two provided members have different assigned partitions.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/modern/ModernGroupMember.java