private static boolean throwableMatchesExpressions(
      String throwableHaystack, String[] expressions) {
    for (String regex : expressions) {
      if (isMultilineMatch(regex, throwableHaystack)) {
        return true;
      }
    }
    return false;
  }
More lenient version of {@link matchesThrowableTop} that checks not just for matches against
the top-level message in the stack that Throwable comprises, but for a match _anywhere_ in the
full stack trace.
portability-types-transfer/src/main/java/org/datatransferproject/types/transfer/retry/RetryMapping.java