void (@NotNull Element node, @NotNull @NonNls String property) { final Object value = ReflectionUtil.getField(this.getClass(), this, null, property); assert value != null : "field " + property + " not found"; node.addContent(new Element("option").setAttribute("name", property).setAttribute("value", value.toString())); }