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