BrokerHeartbeatState last() {
            BrokerHeartbeatState result = head.prev;
            return result == head ? null : result;
        }
Return the head of the list, or null if the list is empty.
metadata/src/main/java/org/apache/kafka/controller/BrokerHeartbeatManager.java