code: private static String readArrayProperty(String ref, TypeDef source, Property property) {
          TypeRef typeRef = property.getTypeRef();
          if (typeRef instanceof ClassRef) {
              //TODO: This needs further breakdown, to cover edge cases.
              return readObjectArrayProperty(ref, source, property);
          }
  
          if (typeRef instanceof PrimitiveRef) {
              return readPrimitiveArrayProperty(ref, source, property);
          }
          throw new IllegalStateException("Property should be either an object or a primitive.");
      }
docs: Returns the string representation of the code that reads an array property.
  @param ref           The reference.
  @param source        The type of the reference.
  @param property      The property to read.
  @return              The code.