private static CstArray makeCstArray(TypeList types) {
    int size = types.size();
    CstArray.List list = new CstArray.List(size);

    for (int i = 0; i < size; i++) {
      list.set(i, CstType.intern(types.getType(i)));
    }

    list.setImmutable();
    return new CstArray(list);
  }
Converts a {@link TypeList} to a {@link CstArray}.

@param types {@code non-null;} the type list
@return {@code non-null;} the corresponding array constant
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/AnnotationUtils.java