Type containerOf = parseParameterisedTypeOf(type);
String containerTypeOf = containerOf == null ? null : translator.typeName(containerOf).value();
String propertyName = translator.typeName(type).value();
Property property;
if (typeClassDoc != null && typeClassDoc.isEnum()) {
property = new Property(typeClassDoc.enumConstants(), null);
} else {
property = new Property(propertyName, null, containerTypeOf);
}
elements.put(typeName, property);
}
return elements;
}