void (@NotNull GrCodeReferenceElement refElement) { if (refElement.getParent() instanceof GrAnnotation) { PsiElement resolved = refElement.resolve(); if (resolved instanceof PsiClass && !((PsiClass)resolved).isAnnotationType() && GrAnnotationCollector.findAnnotationCollector((PsiClass)resolved) != null) { myHolder.newSilentAnnotation(HighlightSeverity.INFORMATION).textAttributes(GroovySyntaxHighlighter.ANNOTATION).create(); } } checkUnresolvedCodeReference(refElement, myHolder); checkInnerClassReferenceFromInstanceContext(refElement, myHolder); }