@Override
    public void writeExternal(@NotNull Element element) {
      if (myConfig != null) {
        element.removeContent();
        final List<Attribute> attributes = myConfig.getAttributes();
        for (Attribute attribute : attributes) {
         element.setAttribute(attribute.clone());
        }
        for (Element child : myConfig.getChildren()) {
          element.addContent(child.clone());
        }
      }
    }
@Override
    public void writeExternal(@NotNull Element element)