boolean (PsiDocTag[] tags, PsiClassType exceptionType) { for (PsiDocTag tag : tags) { PsiDocTagValue element = tag.getValueElement(); if (element == null) continue; PsiJavaCodeReferenceElement ref = PsiTreeUtil.findChildOfType(element, PsiJavaCodeReferenceElement.class); if (ref != null && ref.resolve() == exceptionType.resolve()) return true; } return false; }