By default it should insert "Debug.Assert(...);" and warning should disappear. The statement to be inserted should be configured via a Live Template.
BTW, make sure that the warning is really elimnated in all cases. In particular, in the case like that:
"GetFoo().Bar()" (when "GetFoo" can return null)
it should use temporary local, otherwise the warning won't be elimnated.