@Nullable
  default PsiClass resolveAnnotationType() {
    PsiJavaCodeReferenceElement element = getNameReferenceElement();
    PsiElement declaration = element == null ? null : element.resolve();
    if (!(declaration instanceof PsiClass) || !((PsiClass)declaration).isAnnotationType()) return null;
    return (PsiClass)declaration;
  }
@Nullable
  default PsiClass resolveAnnotationType()