docs: public static <E> E[] unmarshallArray(ObjectInput in, ArrayBuilder<E> builder) throws IOException, ClassNotFoundException {
        final int size = unmarshallSize(in);
        if (size == NULL_VALUE) {
           return null;
        }
        final E[] array = Objects.requireNonNull(builder, "ArrayBuilder must be non-null").build(size);
        for (int i = 0; i < size; ++i) {
           //noinspection unchecked
           array[i] = (E) in.readObject();
        }
        return array;
     }