From the slices of elements and units create an intervaltree.
Create an intervaltree of all elements (elements, units, ...).
Loop the intervaltree to get the text unit interval items.
Enter search terms or a module, class or function name.