private static CharSequence getCharSequence(final FormattingDocumentModel documentModel) {
    return documentModel.getText(new TextRange(0, documentModel.getTextLength()));
  }
private static CharSequence getCharSequence(final FormattingDocumentModel documentModel)