private String getDocumentTextFragment(final int startOffset, final int endOffset) {
    return myDocument.getCharsSequence().subSequence(startOffset, endOffset).toString();
  }
private String getDocumentTextFragment(final int startOffset, final int endOffset)