checkArgument(value instanceof ConstList);
return renderSetConstant((SetType) thriftType, (ConstList) value);
}
else if (thriftType instanceof IdentifierType) {
String typeName = ((IdentifierType) thriftType).getName();
ThriftType resolvedType = typedefRegistry.findType(defaultNamespace, typeName);
checkState(resolvedType != null, format("Could not resolve type named '%s'", typeName));
return render(resolvedType, value);
}
else {
throw new IllegalStateException("Not yet implemented");