public static IntList makeImmutable(int value) {
    IntList result = new IntList(1);

    result.add(value);
    result.setImmutable();

    return result;
  }
Constructs a new immutable instance with the given element.

@param value the sole value in the list
android/android_framework/dex-maker/src/main/java/com/android/dx/util/IntList.java