public boolean isInState(ClassicGroupState groupState) {
        return this.state == groupState;
    }
Compares the group's current state with the given state.

@param groupState the state to match against.
@return true if the state matches, false otherwise.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java