void (@NotNull PropertyChangeListener listener, @NotNull Disposable parentDisposable) { addPropertyChangeListener(listener); Disposer.register(parentDisposable, () -> removePropertyChangeListener(listener)); }