@Override
  public byte[] write(IdeaProject ideaProject, Class<? extends IdeaProject> modelClazz) throws IOException {
    ByteArrayOutputStream out = new ByteArrayOutputStream();
    try (IonWriter writer = createIonWriter().build(out)) {
      GradleVersion gradleVersion = getBuildGradleVersion(ideaProject);
      myWriteContext.setGradleVersion(gradleVersion);
      writer.stepIn(IonType.STRUCT);
      writeString(writer, "gradleVersion", gradleVersion.getVersion());
      writer.stepOut();
      writeProject(writer, myWriteContext, ideaProject);
    }
    return out.toByteArray();
  }
@Override
  public byte[] write(IdeaProject ideaProject, Class<? extends IdeaProject> modelClazz)