public OptionalLong lastVoterSetOffset() {
        synchronized (voterSetHistory) {
            return voterSetHistory.lastVoterSetOffset();
        }
    }
Returns the offset of the last voter set.
raft/src/main/java/org/apache/kafka/raft/internals/KRaftControlRecordStateMachine.java