code: public static <A extends Annotation> A getAnnotation(final Annotation a, final Class<A> type)
     {
        Set<Annotation> seen = new HashSet<>();
        return getAnnotation(seen, a, type);
     }
docs: Inspect annotation <b>a</b> for a specific <b>type</b> of annotation. This also discovers annotations defined
  through a @ {@link Stereotype}.
  
  @param m The method to inspect.
  @param type The targeted annotation class
  @return The annotation instance found on this method or enclosing class, or null if no matching annotation was
  found.