GrAnnotation (@NotNull GrAnnotationNameValuePair pair) { PsiElement pParent = pair.getParent().getParent(); if (pParent instanceof GrAnnotation) return (GrAnnotation)pParent; PsiElement ppParent = pParent.getParent(); return ppParent instanceof GrAnnotation ? (GrAnnotation)ppParent : null; }