private void writeVersion(@NotNull Element parentElement) {
    if (!shouldWriteVersion()) return;
    Element settingsTag = parentElement.getChild(getTagName());
    if (settingsTag == null) {
      parentElement.addContent(new Element(getTagName()));
      settingsTag = parentElement.getChild(getTagName());
    }
    CustomCodeStyleSettingsUtils.writeVersion(settingsTag, myVersion);
    myOldVersion = myVersion;
  }
private void writeVersion(@NotNull Element parentElement)