void (@NotNull Object element, @NotNull JTree tree, @NotNull Consumer<? super TreePath> consumer) { promiseVisitor(element).onSuccess(visitor -> TreeUtil.promiseSelect(tree, visitor).onSuccess(consumer)); }