boolean (@NotNull PsiClass catchClass, @Nullable PsiType upperCatchType) { PsiClass upperCatchClass = PsiUtil.resolveClassInType(upperCatchType); return upperCatchClass != null && InheritanceUtil.isInheritorOrSelf(catchClass, upperCatchClass, true); }