public void save() throws IOException {
    if (element == null || element == EMPTY_ELEMENT) {
      return;
    }

    Files.createDirectories(file.getParent());
    try (BufferedWriter writer = Files.newBufferedWriter(file)) {
      JDOMUtil.writeElement(getElement(), writer, System.lineSeparator());
    }
  }
public void save()