}
ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
if (qualifier != null) {
return Double.valueOf(qualifier.extension().ordinal());
}
Priority priority = type.getAnnotation(Priority.class);
if (priority != null) {
return Double.valueOf(priority.value());
}
}
return null;
}