JMethodCall call = new JMethodCall(sourceInfo, null, initValues, arrayType);
JLiteral classLit = x.getClassLiteral();
JExpression castableTypeMap = getOrCreateCastMap(sourceInfo, arrayType);
JRuntimeTypeReference elementTypeIds = getElementRuntimeTypeReference(sourceInfo, arrayType);
JsonArray initList = new JsonArray(sourceInfo, program.getJavaScriptObject());
JIntLiteral leafElementTypeCategory = getTypeCategoryLiteral(arrayType.getElementType());
for (int i = 0; i < x.initializers.size(); ++i) {
initList.getExprs().add(x.initializers.get(i));
}
call.addArgs(classLit, castableTypeMap, elementTypeIds, leafElementTypeCategory, initList);
ctx.replaceMe(call);