if (javaClass.isArray()) {
final Result result = context.processType(javaClass.getComponentType());
return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses());
}
if (javaClass.isEnum()) {
<BUG>return new Result(new TsType.ReferenceType(context.getMappedName(javaClass)), javaClass);
</BUG>
}
if (Collection.class.isAssignableFrom(javaClass)) {
return new Result(new TsType.BasicArrayType(TsType.Any));

if (javaClass.isArray()) {
final Result result = context.processType(javaClass.getComponentType());
return new Result(new TsType.BasicArrayType(result.getTsType()), result.getDiscoveredClasses());
}
if (javaClass.isEnum()) {
return new Result(new TsType.EnumReferenceType(context.getSymbol(javaClass)), javaClass);
}
if (Collection.class.isAssignableFrom(javaClass)) {
return new Result(new TsType.BasicArrayType(TsType.Any));
