public boolean supportsProtocols(
        String memberProtocolType,
        JoinGroupRequestProtocolCollection memberProtocols
    ) {
        return supportsProtocols(
            memberProtocolType,
            ClassicGroupMember.plainProtocolSet(memberProtocols)
        );
    }
Checks whether at least one of the given protocols can be supported. A
protocol can be supported if it is supported by all members.

@param memberProtocolType  the member protocol type.
@param memberProtocols     the set of protocol names.

@return a boolean based on the condition mentioned above.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java