private static void checkReferences(PsiElement psiElement, ProblemsHolder holder) { PsiReference[] references = psiElement.getReferences(); PsiReference last = ArrayUtil.getLastElement(references); if (last != null && (!(last instanceof ResolvingHint) || ((ResolvingHint)last).canResolveTo(PsiDocCommentOwner.class))) { PsiElement resolve = last.resolve(); DeprecationInspection.checkDeprecated(resolve, psiElement, last.getRangeInElement(), holder); } }