/** * Changes all comments recursively. * * @param modifier A function that take content and returns new content. * @param recurse If {@code true}, then this is applied recursively. */ public default void changeComments(Function<String, String> modifier, boolean recurse) { changeComments(modifier); if (recurse) { for (final Element child : getElements()) { child.changeComments(modifier, true); } } } }