private void AddDependency(IMethodReference method)
        {
            method = method.UnWrapMember <IMethodReference>();

            // We are not directly interested in generic instances, they will get broken down into
            // their various pieces from the traversal and that is what we are interested in.
            if (method.IsGenericInstance())
            {
                return;
            }

            // We don't care about WindowsRuntime methods
            if (method.IsWindowsRuntimeMember())
            {
                return;
            }

            AddGeneralDependency(method);

            if (this.ComputeFullClosure)
            {
                IMethodDefinition methodDef = method.ResolvedMethod;

                if (methodDef is Dummy)
                {
                    _unresolvedDependencies.Add(method);
                }
                else
                {
                    base.Traverse(methodDef);
                }
            }
        }