void (final @NotNull Element parent, final @NotNull String nodeName, final @NotNull String attrName, final String @NotNull ... values) { for (final String value : values) { final Element node = new Element(nodeName); node.setAttribute(attrName, value); parent.addContent(node); } }