private static void writeComponentsDependencies(IonWriter writer,
                                                  WriteContext context,
                                                  Collection<ComponentDependencies> dependencies) throws IOException {
    writer.setFieldName("componentsDependencies");
    writer.stepIn(IonType.LIST);
    for (ComponentDependencies componentDependencies : dependencies) {
      writeComponentDependencies(writer, context, componentDependencies);
    }
    writer.stepOut();
  }
private static void writeComponentsDependencies(IonWriter writer,
                                                  WriteContext context,
                                                  Collection<ComponentDependencies> dependencies)