public MembershipManager membershipManager() {
        return membershipManager;
    }
Returns the {@link MembershipManager} that this request manager is using to track the state of the group.
This is provided so that the {@link ApplicationEventProcessor} can access the state for querying or updating.
clients/src/main/java/org/apache/kafka/clients/consumer/internals/HeartbeatRequestManager.java