code: protected static Map<Class<? extends Annotation>, Annotation> buildAnnotationMap(Iterable<Annotation> annotations) {
          Map<Class<? extends Annotation>, Annotation> annotationMap = new HashMap<Class<? extends Annotation>, Annotation>();
          for (Annotation annotation : annotations) {
              annotationMap.put(annotation.annotationType(), annotation);
          }
          return annotationMap;
      }
docs: Builds the annotation map (annotation type -> annotation)
  
  @param annotations The array of annotations to map
  @return The annotation map