Element (@NotNull String sourceToolName, @NotNull Element sourceElement, @NotNull Element toolElement) { Element element = new Element("extension").setAttribute("name", sourceToolName); element.setAttribute("enabled", ObjectUtils.notNull(sourceElement.getAttributeValue("enabled"), "false")); toolElement.addContent(element); return element; }