void (Element root, @NonNls String name, String value) { @NonNls Element element = new Element("setting"); element.setAttribute(Constants.NAME, name); element.setAttribute(Constants.VALUE, value == null ? "" : value); root.addContent(element); }