public final List<E> findAll(E key) {
        if (key == null || size() == 0) {
            return Collections.emptyList();
        }
        ArrayList<E> results = new ArrayList<>();
        int slot = slot(elements, key);
        for (int seen = 0; seen < elements.length; seen++) {
            Element element = elements[slot];
            if (element == null) {
                break;
            }
            if (key.elementKeysAreEqual(element)) {
                @SuppressWarnings("unchecked")
                E result = (E) elements[slot];
                results.add(result);
            }
            slot = (slot + 1) % elements.length;
        }
        return results;
    }
Returns all of the elements e in the collection such that
key.elementKeysAreEqual(e) and key.hashCode() == e.hashCode().

@param key       The element to match.

@return          All of the matching elements.
clients/src/main/java/org/apache/kafka/common/utils/ImplicitLinkedHashMultiCollection.java