static bool isOverlapping(TextMatch a, TextMatch b) { return !(a.end <= b.start || b.end <= a.start); }