void (DomElement parent, String localName, Processor<? super DomElement> processor) { parent.acceptChildren(element -> { if (element.getXmlElementName().equals(localName)) { processor.process(element); } }); }