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