public static DeclaredElementInstance GetDeclaredElement([NotNull] this ILookupItem lookupItem)
        {
            var wrapper = lookupItem as ILookupItemWrapper <DeclaredElementInfo>;

            if (wrapper != null)
            {
                return(wrapper.Info.PreferredDeclaredElement);
            }

            return(null);
        }
 public static void AddSomewhere([NotNull] this GroupedItemsCollector collector, [NotNull] ILookupItem lookupItem)
 {
     collector.AddToBottom(lookupItem);
 }
        public static IEnumerable <DeclaredElementInstance> GetAllDeclaredElementInstances([NotNull] this ILookupItem lookupItem)
        {
            var wrapper = lookupItem as ILookupItemWrapper <DeclaredElementInfo>;

            if (wrapper != null)
            {
                foreach (var instance in wrapper.Info.AllDeclaredElements)
                {
                    yield return(instance);
                }
            }
        }