boolean (PsiTryStatement tryStatement, PsiType exceptionType) { for (PsiParameter parameter : tryStatement.getCatchBlockParameters()) { final PsiType type = parameter.getType(); if (type.isAssignableFrom(exceptionType)) return true; } return false; }