Java 类com.intellij.psi.ResolvingHint 实例源码

项目:consulo-java    文件:DeprecatedClassUsageInspection.java   
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);
  }
}