public static Set<String> plainProtocolSet(
        JoinGroupRequestProtocolCollection supportedProtocols
    ) {
        Set<String> protocolNames = new HashSet<>();
        for (JoinGroupRequestProtocol protocol : supportedProtocols) {
            protocolNames.add(protocol.name());
        }
        return protocolNames;
    }
Transform protocols into their respective names.

@param supportedProtocols list of supported protocols.
@return a set of protocol names from the given list of supported protocols.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroupMember.java