private static void makeSameSizes(int[] widths) {
    int max = widths[0];
    for (int width : widths) {
      max = Math.max(width, max);
    }

    Arrays.fill(widths, max);
  }
private static void makeSameSizes(int[] widths)