internal QueryTextSpan GetSpanWithCurrentTextCursor()
 => Spans.OfType <QueryTextSpan>().SingleOrDefault();