You don't need to loop through the annotations, you can actually do
`clazz.getAnnotation(type)` and it should return null if it doesn't have the annotation, or the annotation instance itself.