BeanDescription desc) throws JsonMappingException {
// If there is a JsonCreator annotation we should use that instead of the PermissiveEnumDeserializer
final Collection<AnnotatedMethod> factoryMethods = desc.getFactoryMethods();
if (factoryMethods != null) {
for (AnnotatedMethod am : factoryMethods) {
final JsonCreator creator = am.getAnnotation(JsonCreator.class);
if (creator != null) {
return EnumDeserializer.deserializerForCreator(config, type, am);
}
}
}