boolean (List<TreePath> list, @NotNull JTree tree, AsyncPromise<Void> promise) { if (list != null && tree.isSelectionEmpty()) return true; if (promise != null) promise.setResult(null); return false; }