public boolean handles(Throwable thr){
  return errorType.isInstance(thr) && check.apply((T)thr);
}

public boolean handles ( Throwable thr ) { return errorType . isInstance ( thr ) && check . apply ( ( T ) thr ) ; }
tests if this formatter handles the given exception .
