String (JTree tree, TreePath path, boolean withSelection, @Nullable Queryable.PrintInfo printInfo, @Nullable Predicate<? super String> nodePrintCondition) { Collection<String> strings = new ArrayList<>(); printImpl(tree, path, strings, 0, withSelection, printInfo, nodePrintCondition); return String.join("\n", strings); }