for (Object annotation : method.getAnnotations()) {
Class<? extends Annotation> annotationType = ((Annotation) annotation).annotationType();
//Now find the annotation of the annotation
@Nullable ThreadDescribingAnnotation threadDescribingAnnotation = AnnotationUtils.findAnnotation( annotationType.getAnnotations(), ThreadDescribingAnnotation.class );
if (threadDescribingAnnotation == null) {
continue;
}
threadDescriptions.add(threadDescribingAnnotation.value());
}
//Skip if no relevant annotations have been found
if (threadDescriptions.isEmpty()) {
continue;