void () { SmartList<TreePath> list = new SmartList<>(); acceptAndUpdate(new TreeVisitor() { @NotNull @Override public Action visit(@NotNull TreePath path) { list.add(path); return Action.CONTINUE; } }, list, false); }