class CollectionUtils {

    @SafeVarargs
    public static <A> Map<A, A> pairingArrayMap(A... array) {
        return pairingArray(array, LinkedHashMap::new, Map::put);
    }

    public static <A, T> T pairingArray(A[] array,
                                        Supplier<T> supplier,
                                        Consumer3<T, A, A> mapping) {<FILL_FUNCTION_BODY>}
}

        T container = supplier.get();
        for (int i = 0, len = array.length / 2; i < len; i++) {
            mapping.accept(container, array[i * 2], array[i * 2 + 1]);
        }
        return container;
    
<no_super_class>