private AbstractTreeItem CreateTreeItem(INavigableItem item, int commonPathElements)
        {
            var result = new SourceReferenceTreeItem(
                item.Document, item.SourceSpan, item.Glyph.GetGlyphIndex(), commonPathElements,
                displayText: item.DisplayTaggedParts.JoinText(),
                includeFileLocation: item.DisplayFileLocation);

            if (!item.ChildItems.IsEmpty)
            {
                var childItems = CreateNavigableItemTreeItems(item.ChildItems, commonPathElements);
                result.Children.AddRange(childItems);
                result.SetReferenceCount(childItems.Count);
            }

            return result;
        }
        private AbstractTreeItem CreateTreeItem(INavigableItem item, int commonPathElements)
        {
            var displayText = !item.ChildItems.IsEmpty ? item.DisplayName : null;
            var result = new SourceReferenceTreeItem(item.Document, item.SourceSpan, item.Glyph.GetGlyphIndex(), commonPathElements, displayText);

            if (!item.ChildItems.IsEmpty)
            {
                var childItems = CreateNavigableItemTreeItems(item.ChildItems, commonPathElements);
                result.Children.AddRange(childItems);
                result.SetReferenceCount(childItems.Count);
            }

            return result;
        }