public static MethodDefinition TryResolve(this ModuleDefinition scope, MethodReference methodRef)
 {
     var matchingTypeRef = methodRef.DeclaringType.Clone();
     matchingTypeRef.Scope = scope;
     var matchingMethodRef = methodRef.Clone();
     matchingMethodRef.DeclaringType = matchingTypeRef;
     return scope.MetadataResolver.TryResolve(matchingMethodRef);
 }