public static FixedTypeDecoder isFinalDecoder(Class type) {
if (type == String.class) {
return StringDecoder.instance;
}
if (type.isEnum()) {
return new EnumDecoder(type);
}
if (type == boolean.class || type == Boolean.class) {
return BooleanDecoder.instance;
}