public IntList mutableCopy() {
    int sz = size;
    IntList result = new IntList(sz);

    for (int i = 0; i < sz; i++) {
      result.add(values[i]);
    }

    return result;
  }
Makes and returns a mutable copy of the list.

@return {@code non-null;} an appropriately-constructed instance
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java