@ApiStatus.Internal
  protected void addLocationChangeListener(@NotNull Consumer<? super DocumentEvent> listener) {
    if (myLocationField == null) return;
    DocumentListener documentAdapter = new DocumentAdapter() {
      @Override
      protected void textChanged(@NotNull DocumentEvent e) {
        listener.accept(e);
      }
    };
    myLocationField.getTextField().getDocument().addDocumentListener(documentAdapter);
    Disposer.register(this, () -> myLocationField.getTextField().getDocument().removeDocumentListener(documentAdapter));
  }
@ApiStatus.Internal
  protected void addLocationChangeListener(@NotNull Consumer<? super DocumentEvent> listener)