public boolean hasAssignment() {
        return assignment != null && assignment.length > 0;
    }
@return whether the member has an assignment set.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroupMember.java