public void writeExternal(@NotNull Element parent) {
    Element state = XmlSerializer.serialize(this);
    if (state != null) {
      parent.addContent(state);
    }
  }
public void writeExternal(@NotNull Element parent)