void (@NotNull ScopeListener scopeListener, @NotNull Disposable parentDisposable) { myScopeListeners.add(scopeListener); Disposer.register(parentDisposable, () -> myScopeListeners.remove(scopeListener)); }