void (@NotNull Runnable runnable) { AbstractTreeUi ui = getUi(); if (ui == null) return; if (ui.isPassthroughMode()) { runnable.run(); } else { EdtExecutorService.getInstance().execute(()->{ if (!isDisposed()) runnable.run(); }); } }