Could this reference be avoided (see my previous comment)? I'm also wondering whether a method on `Type` should be a bit more generic, maybe there should be something like `boolean isAnnotatedWith(String annotationName)`?