@Override
  public @NotNull CharSequence getLastCommittedText(@NotNull Document document) {
    return getLastCommittedDocument(document).getImmutableCharSequence();
  }
@Override
  public @NotNull CharSequence getLastCommittedText(@NotNull Document document)