@Override
        public int getStartOffset() {
          Document document = editor.getDocument();
          return document.getLineStartOffset(i);
        }
@Override
        public int getStartOffset()