public boolean matches(JoinGroupRequestProtocolCollection protocols) {
        return protocols.equals(this.supportedProtocols);
    }
Compare the given list of protocols with the member's supported protocols.

@param protocols list of protocols to match.
@return true if the given list matches the member's list of supported protocols,
        false otherwise.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroupMember.java