if (type.isEnum()) {
Class<? extends Enum> enumType = Cast.uncheckedCast(type);
return convertEnum(enumType, notation);
}
NotationParser<Object, ?> parser;
<BUG>if (File.class.equals(type)) {
parser = fileParser;
} else {</BUG>
parser = parsers.get(primitive ? UNBOXED_TYPES.get(type) : type);
<BUG>if (parser == null) {
throw new UnsupportedNotationException(notation, "Unsupported type", null, CANDIDATES);
}</BUG>
}

if (type.isEnum()) {
Class<? extends Enum> enumType = Cast.uncheckedCast(type);
return convertEnum(enumType, notation);
}
NotationParser<Object, ?> parser;
parser = parsers.get(primitive ? UNBOXED_TYPES.get(type) : type);
if (parser == null) {
throw new IllegalArgumentException("Don't know how to convert to type " + type.getName());
}
