oldMethod.getParameterTypes(), oldMethod.getReturnType(),
oldMethod.getModifiers(), oldMethod.getExceptions());
newClass.addMethod(newMethod);
JimpleBody body = Jimple.v().newBody(newMethod);
body.importBodyContentsFrom(oldMethod.retrieveActiveBody());
newMethod.setActiveBody(body);
}
changeTypesOfFields(newClass, oldClass, newClass);
changeTypesInMethods(newClass, oldClass, newClass);