private PatternMatch?AdjustMatchedSpans(PatternMatch value, int offset) => value.MatchedSpans.IsDefaultOrEmpty ? value : value.WithMatchedSpans(value.MatchedSpans.SelectAsArray(s => new TextSpan(s.Start + offset, s.Length)));