@Override
        public boolean equals(Object o) {
            if (this == o) return true;
            if (o == null || getClass() != o.getClass()) return false;

            VoterNode that = (VoterNode) o;

            if (!Objects.equals(voterKey, that.voterKey)) return false;
            if (!Objects.equals(supportedKRaftVersion, that.supportedKRaftVersion)) return false;
            return Objects.equals(listeners, that.listeners);
        }
Returns the listeners of the voter node
raft/src/main/java/org/apache/kafka/raft/internals/VoterSet.java