static void writeField(@NotNull Element element, @NotNull String name, @Nullable String value) {
    if (value == null) return;
    element.addContent(new Element(Constants.OPTION)
                         .setAttribute(Constants.NAME, name)
                         .setAttribute(Constants.VALUE, value));
  }
static void writeField(@NotNull Element element, @NotNull String name, @Nullable String value)