code: public static AnnotationMirror getAnnotationMirror(TypeElement typeElement, Class<?> annotationClass) {
          String annotationClassName = annotationClass.getName();
          for (AnnotationMirror m : typeElement.getAnnotationMirrors()) {
              if (m.getAnnotationType().toString().equals(annotationClassName)) {
                  return m;
              }
          }
          return null;
      }
docs: Get a certain annotation of a {@link TypeElement}.
  See <a href="https://stackoverflow.com/a/10167558">stackoverflow.com</a> for more information.
  
  @param typeElement the type element, that contains the requested annotation
  @param annotationClass the class of the requested annotation
  @return the requested annotation or null, if no annotation of the provided class was found
  @throws NullPointerException if <code>typeElement</code> or <code>annotationClass</code> is null