static void GetPointForOffset(Document document, int offset, out int line, out int column)
 {
     if (offset > document.TextLength)
     {
         line   = document.TotalNumberOfLines + 1;
         column = 1;
     }
     else if (offset < 0)
     {
         line   = -1;
         column = -1;
     }
     else
     {
         line   = document.GetLineNumberForOffset(offset);
         column = offset - document.GetLineSegment(line).Offset;
     }
 }