The java reflection API provides these two different ways to locate annotations:
https://docs.oracle.com/javase/8/docs/api/java/lang/reflect/AnnotatedElement.html#getAnno