void (@NotNull SMTestProxy testProxy, @NotNull Failure failure) { if (failure instanceof TestFailure testFailure) { processTestFailureResult(testProxy, testFailure); } else { LOG.warn("Undefined test failure type: " + failure.getClass().getName()); var message = ObjectUtils.doIfNotNull(failure, it -> it.getMessage()); var description = ObjectUtils.doIfNotNull(failure, it -> it.getDescription()); testProxy.setTestFailed(message, description, true); } for (var cause : failure.getCauses()) { processFailureResult(testProxy, cause); } }