public static void writeArray(StringBuilder sb, int arrayDim, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers) {
    for (int i = 0; i < arrayDim; i++) {
      boolean firstIteration = true;
      for (TypeAnnotationWriteHelper typeAnnotationWriteHelper : typeAnnWriteHelpers) {
        if (i == typeAnnotationWriteHelper.getPaths().size()) {
          if (firstIteration) {
            sb.append(' ');
            firstIteration = false;
          }
          typeAnnotationWriteHelper.writeTo(sb);
        }
      }
      sb.append("[]");
    }
  }
public static void writeArray(StringBuilder sb, int arrayDim, List<TypeAnnotationWriteHelper> typeAnnWriteHelpers)