code: private static RunIf findRunIfAnnotation(Class<?> klass) {
  		while (klass != null && klass != Object.class) {
  			RunIf annotation = klass.getAnnotation(RunIf.class);
  			if (annotation != null) {
  				return annotation;
  			}
  
  			klass = klass.getSuperclass();
  		}
  
  		return null;
  	}
docs: Find the {@link RunIf} annotation on the class or on a superclass in the hierarchy.
  
  @param klass The class to analyze.
  @return The {@link RunIf} annotation if found, {@code null} otherwise.