private static void ValidateCallInstanceType(Type instanceType, MethodInfo method) { if (!TypeUtils.IsValidInstanceType(method, instanceType)) { throw Error.InstanceAndMethodTypeMismatch(method, method.DeclaringType, instanceType); } }