public static List<TypeAnnotationWriteHelper> writeNestedTypeAnnotations(
    StringBuilder sb,
    List<TypeAnnotationWriteHelper> typeAnnWriteHelpers
  ) {
    return typeAnnWriteHelpers.stream().filter(typeAnnWriteHelper -> {
      StructTypePathEntry path = typeAnnWriteHelper.getPaths().peek();
      if (path == null) {
        typeAnnWriteHelper.writeTo(sb);
        return false;
      }
      return true;
    }).collect(Collectors.toList());
  }
public static List<TypeAnnotationWriteHelper> writeNestedTypeAnnotations(
    StringBuilder sb,
    List<TypeAnnotationWriteHelper> typeAnnWriteHelpers
  )