     var lineNumber: Int
     var attributedLineString: NSAttributedString
     var inlineRange: NSRange
-}
-
-
-private struct HighlightItem {
-    
-    var range: NSRange
-    var color: NSColor
 }
 
 

                // highlight
                highlights += matches.enumerated()
                    .filter { !$0.element.isEmpty }
                    .map { HighlightItem(range: $0.element, color: highlightColors[$0.offset]) }
                
                // build TextFindResult for table
                if showsList {

        DispatchQueue.global(qos: .userInitiated).async { [weak self] in
            guard let self = self else { return }
            
            var highlights: [ItemRange<NSColor>] = []
            var results: [TextFindResult] = []  // not used if showsList is false
            
            textFind.findAll { (matches: [NSRange], stop) in
