boolean (@NotNull final PsiClassType throwType, @NotNull PsiType catchType) { if (catchType instanceof PsiDisjunctionType) { for (PsiType catchDisjunction : ((PsiDisjunctionType)catchType).getDisjunctions()) { if (throwType.isAssignableFrom(catchDisjunction)) { return true; } } return false; } return throwType.isAssignableFrom(catchType); }