private IEnumerable <CodeCompletionItem> GenerateFromCallingClass(IProjectContent projectContent,
                                                                          IMethod delegateSignature)
        {
            var codeCompletionItemsFromCallingClass = Enumerable.Empty <CodeCompletionItem>();

            if (_resolveResult.CallingClass != null)
            {
                var matchedMethods = from method in _resolveResult.CallingClass.DefaultReturnType.GetMethods()
                                     where !MemberLookupHelper.IsSpecialMember(method) &&
                                     MemberLookupHelper.IsAccesibleInCurrentContext(method, _resolveResult) &&
                                     MemberLookupHelper.SignatureMatch(delegateSignature, method)
                                     select method;

                codeCompletionItemsFromCallingClass = from matchedMethod in matchedMethods
                                                      select new CodeCompletionItem(matchedMethod, projectContent);
            }
            return(codeCompletionItemsFromCallingClass);
        }