code: public <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
          Objects.requireNonNull(annotationClass);
          T[] annotations = getAnnotationsByType(annotationClass);
          return annotations.length > 0 ? annotations[0] : null;
      }
docs: {@inheritDoc}
  @throws NullPointerException {@inheritDoc}