protected override bool AddLookupItems(PsiCodeCompletionContext context, GroupedItemsCollector collector) { IReference reference = context.ReparsedContext.Reference; if (reference == null) { return(false); } reference.GetReferenceSymbolTable(false).ForAllSymbolInfos(info => { var item = new DeclaredElementLookupItemImpl(new DeclaredElementInstance(info.GetDeclaredElement(), EmptySubstitution.INSTANCE), context, PsiLanguage.Instance, context.BasicContext.LookupItemsOwner); item.InitializeRanges(context.Ranges, context.BasicContext); collector.AddAtDefaultPlace(item); }); return(true); }