ComparisonFailureData (String message) { ComparisonFailureData softAssertNotification = createExceptionNotification(message, SOFT_ASSERT_PATTERN); if (softAssertNotification != null) { return SOFT_ASSERT_CHAINED_PATTERN.matcher(softAssertNotification.getExpected()).find() ? null : softAssertNotification; } return createExceptionNotification(message, PATTERNS); }