public boolean matches(Throwable throwable) {
    // nit: we're purposely trying to short-circuit here on an early match with a much smaller
    // haystack (the top-level message).
    return matchesThrowableTop(throwable) || matchesThrowableStack(throwable);
  }
Whether throwable is matched by any of the current or future capabilities of this class.
portability-types-transfer/src/main/java/org/datatransferproject/types/transfer/retry/RetryMapping.java