Element (@NotNull Element element, @NotNull Configuration config) { final Element infoElement = new Element(config instanceof SearchConfiguration ? SEARCH_TAG_NAME : REPLACE_TAG_NAME); element.addContent(infoElement); config.writeExternal(infoElement); return infoElement; }