private static Element indexToElement(Element head, Element[] elements, int index) {
        if (index == HEAD_INDEX) {
            return head;
        }
        return elements[index];
    }
A static empty array used to avoid object allocations when the capacity is zero.
clients/src/main/java/org/apache/kafka/common/utils/ImplicitLinkedHashCollection.java