public void addResizeListener(@NotNull Runnable runnable, @NotNull Disposable parentDisposable) {
    myResizeListeners.add(runnable);
    Disposer.register(parentDisposable, () -> myResizeListeners.remove(runnable));
  }
public void addResizeListener(@NotNull Runnable runnable, @NotNull Disposable parentDisposable)