public void SetFoldings(IEnumerable <IFoldSegment> foldings)
 {
     if (foldings == null)
     {
         throw new ArgumentNullException(nameof(foldings));
     }
     textEditorImpl.SetFoldings(foldings);
 }