public boolean usesConsumerGroupProtocol() {
        return protocolType.map(type ->
            type.equals(ConsumerProtocol.PROTOCOL_TYPE)
        ).orElse(false);
    }
@return whether the group is using the consumer protocol.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java