NewSetResourceReference returns a NewMethod that writes a SetResourceReference method for the supplied Object to the supplied file.
(receiver, core string)
source not stored for this graph (policy: none)