boolean (PsiElement curr, PsiElement prev) { if (!(curr instanceof PsiTryStatement tryStatement)) return true; return Arrays.stream(tryStatement.getCatchSections()) .map(PsiCatchSection::getCatchType) .filter(Objects::nonNull) .filter(e -> ! ExceptionUtil.isGeneralExceptionType(e)) .noneMatch(e -> e.isAssignableFrom(myType)); }