public static boolean isAnnotationPresentRecursive(Class<?> cls, Class<? extends Annotation> annotationClass) {
    return cls.isAnnotationPresent(annotationClass) ||
      (Object.class.equals(cls) ? false : isAnnotationPresentRecursive(cls.getSuperclass(), annotationClass));
  }
Returns the resources from the {@code Thread.currentThread().getContextClassLoader()}.

@param resourcePath the path of the resource
@return the list of resources
@throws IOException if the resources can't be loaded
spock-core/src/main/java/org/spockframework/util/ReflectionUtil.java