void () { updateTreeIfShown(tree -> { tree.invalidateDataAndRefresh(() -> { ApplicationManager.getApplication().invokeLater(() -> { myPostUpdateEdtActivity.forEach(Runnable::run); myPostUpdateEdtActivity.clear(); }, ModalityState.nonModal(), myProject.getDisposed()); }); }); }