docs: @Override
      public void writeContent(XMLExtendedStreamWriter writer, Dependency value) throws XMLStreamException {
  
          if(value != null && this != value) {
              throw new IllegalStateException("Wrong target dependency.");
          }
  
          writer.writeStartElement(ModuleConfigImpl.MODULE);
          writer.writeAttribute(ModuleConfigImpl.NAME, name);
          if (export) {
              writer.writeAttribute(ModuleConfigImpl.EXPORT, "true");
          }
          writer.writeEndElement();
      }