How can a method implementation be preserved when rerunning a model to code transformation?

A.
comment the method you like to preserve
B.
remove the “@generated” comment tag of the method
C.
replace the “@generated” comment tag of the method by “@preserve”.
D.
remove the “@generated” comment tag of the java file containing the method