private static CharSequence getDocumentCharSequence(DocumentContent documentContent) {
    return ReadAction.compute(() -> {
      return documentContent.getDocument().getImmutableCharSequence();
    });
  }
private static CharSequence getDocumentCharSequence(DocumentContent documentContent)