SourceInfo methodInfo = typeInfo.makeChild();
JMethodCall call = new JMethodCall(methodInfo, null,
program.getIndexedMethod("Enum.createValueOfMap"));
call.addArg(new JFieldRef(methodInfo, null, valuesField, type));
JFieldRef mapRef = new JFieldRef(methodInfo, null, mapField, type);
JDeclarationStatement declStmt = new JDeclarationStatement(methodInfo,
mapRef, call);
JMethod clinit = program.createMethod(methodInfo, "$clinit", mapClass,
program.getTypeVoid(), false, true, true, true, false);
clinit.freezeParamTypes();
methodInfo.addCorrelation(methodInfo.getCorrelator().by(clinit));