PsiClass (@Nullable PsiDocTagValue value) { if (value == null) return null; PsiElement refHolder = value.getFirstChild(); if (refHolder != null) { PsiElement refElement = refHolder.getFirstChild(); if (refElement instanceof PsiJavaCodeReferenceElement) { PsiElement target = ((PsiJavaCodeReferenceElement)refElement).resolve(); if (target instanceof PsiClass) { return (PsiClass)target; } } } return null; }