code: public static Object unflatten(Object array, int[] dimensions) {
          Class<?> type = getType(array);
  
          return unflatten(type, array, dimensions, 0);
      }
docs: Un-flatten a one-dimensional array into an multi-dimensional array based on the provided dimensions.
  
  @param array      the 1-dimensional array to un-flatten.
  @param dimensions the dimensions to un-flatten to.
  @return a multi-dimensional array of the provided dimensions.