public IEnumerable <IFoldSegment> GetFoldingsIn(ISegment segment)
 {
     if (segment == null)
     {
         throw new ArgumentNullException(nameof(segment));
     }
     return(textEditorImpl.GetFoldingsIn(segment.Offset, segment.Length));
 }