public static void calculateSizeScalaVector(
     com.github.andrewoma.dexx.collection.Vector<Integer> data, int size) {
   for (int i = 0; i < size; i++) {
     data = data.append(i);
   }
   System.out.println(GraphLayout.parseInstance(data).toFootprint());
 }
 public static void calculateSizeCollection(Supplier<Collection<Integer>> supplier, int size) {
   Collection<Integer> collection = supplier.get();
   for (int i = 0; i < size; i++) {
     collection.add(i);
   }
   System.out.println(GraphLayout.parseInstance(collection).toFootprint());
 }
 public static void calculateSizePersistentVector(
     com.github.krukow.clj_ds.PersistentVector<Integer> data, int size) {
   for (int i = 0; i < size; i++) {
     data = data.plus(i);
   }
   System.out.println(GraphLayout.parseInstance(data).toFootprint());
 }
 public static void calculateSizeArray(Integer[] dataArray, int size) {
   for (int i = 0; i < size; i++) {
     dataArray[i] = i;
   }
   System.out.println(GraphLayout.parseInstance(dataArray).toFootprint());
 }