public static boolean containsInterruptedException(Throwable t) {
    return !Iterables
        .isEmpty(Iterables.filter(Throwables.getCausalChain(t), x -> isInterrupted(x)));
  }
public static boolean containsInterruptedException ( Throwable t ) { return ! Iterables . isEmpty ( Iterables . filter ( Throwables . getCausalChain ( t ) , x -> isInterrupted ( x ) ) ) ; }
@param t a throwable to check
@return whether the given throwable contains a type of interrupted exception in its causal
chain (the causal chain includes the throwable itself)