public String leaderOrNull() {
        return leaderId.orElse(null);
    }
@return the leader id or null if a leader does not exist.
group-coordinator/src/main/java/org/apache/kafka/coordinator/group/classic/ClassicGroup.java