private @NotNull CharSequence getLastCommittedText(@NotNull Document document) {
    return PsiDocumentManager.getInstance(myManager.getProject()).getLastCommittedText(document);
  }
private @NotNull CharSequence getLastCommittedText(@NotNull Document document)