private static long sparseCodeSize(IntList cases) {
    int sz = cases.size();

    return (sz * 4L) + 2;
  }
Gets the size of a sparse table for the given cases, in 16-bit code units.

@param cases {@code non-null;} sorted list of cases
@return {@code > 0;} the sparse table size
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/code/SwitchData.java