This function would be a little cleaner if

    Class<?> inputComponentClz = inputClz.getComponentType();

was calculated in the caller and passed instead of inputClz, so the roles of the two type arguments matched.