The fix targets cases when a method's return type has a generic type, and the generic type is declared inline on the return type. We need to pass containing class information as a ResolvableType in order to be able to resolve generic types. Closes gh-1037