This provides more flexibility to pass a targetType even if a MethodParameter is not available. See gh-26721