boolean (Class<?> aClass) { if (aClass.getName().equals("org.opentest4j.MultipleFailuresError")) { return true; } Class<?> superclass = aClass.getSuperclass(); return superclass != null && isMultipleFailuresError(superclass); }