int CompareFoldingRegion(FoldingRegion lhs, FoldingRegion rhs)
        {
            var compareBeginLine = lhs.Region.BeginLine.CompareTo(rhs.Region.BeginLine);

            if (compareBeginLine == 0)
            {
                return(lhs.Region.BeginColumn.CompareTo(rhs.Region.BeginColumn));
            }
            return(compareBeginLine);
        }
        NewFolding ConvertToNewFold(FoldingRegion foldingRegion)
        {
            var newFold = new NewFolding
            {
                Name        = foldingRegion.Name,
                StartOffset = GetStartOffset(foldingRegion.Region),
                EndOffset   = GetEndOffset(foldingRegion.Region)
            };


            return(newFold);
        }