ComparisonFailureData (String message, List<Pattern> patterns) { ComparisonFailureData assertEqualsNotification = createExceptionNotification(message, ASSERT_EQUALS_PATTERN); if (assertEqualsNotification != null) { return ASSERT_EQUALS_CHAINED_PATTERN.matcher(assertEqualsNotification.getExpected()).find() ? null : assertEqualsNotification; } for (Pattern pattern : patterns) { ComparisonFailureData notification = createExceptionNotification(message, pattern); if (notification != null) { return notification; } } return null; }