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