@Override
  public void beforeDocumentChange(@NotNull DocumentEvent event) {
    if (!project.isDisposed()) {
      listener.beforeDocumentChange(event);
    }
  }
@Override
  public void beforeDocumentChange(@NotNull DocumentEvent event)