docs: public static <T extends Annotation> T getAnnotation(Method method, Class<T> type) {
  		for (Annotation a : getAnnotations(method)) {
  			if (type.isInstance(a)) {
  				return type.cast(a);
  			}
  		}
  		return null;
  	}