boolean (List<PsiType> expectedThrownTypes, PsiType thrownType) { for (PsiType expectedThrownType : expectedThrownTypes) { if (TypeConversionUtil.isAssignable(expectedThrownType, thrownType)) { return true; } } return false; }