ConditionEvaluationResult (ExtensionContext context) { return AnnotationSupport.findAnnotation(context.getElement(), Bombed.class) .map(bombed -> TestFrameworkUtil.bombExplodes(bombed) ? ConditionEvaluationResult.enabled("Bomb exploded") : ConditionEvaluationResult.disabled("Bomb not yet exploded")) .orElse(ConditionEvaluationResult.enabled("No bomb defined")); }