void (@NotNull final GrReferenceExpression referenceExpression) { checkStringNameIdentifier(referenceExpression); checkThisOrSuperReferenceExpression(referenceExpression, myHolder); checkFinalFieldAccess(referenceExpression); checkFinalParameterAccess(referenceExpression); if (ResolveUtil.isKeyOfMap(referenceExpression)) { PsiElement nameElement = referenceExpression.getReferenceNameElement(); LOG.assertTrue(nameElement != null); myHolder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(nameElement).textAttributes(GroovySyntaxHighlighter.MAP_KEY).create(); } else if (ResolveUtil.isClassReference(referenceExpression)) { PsiElement nameElement = referenceExpression.getReferenceNameElement(); LOG.assertTrue(nameElement != null); myHolder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(nameElement).textAttributes(GroovySyntaxHighlighter.KEYWORD).create(); } else if (isInStaticCompilationContext(referenceExpression)) { checkUnresolvedReference(referenceExpression, true, true, new UnresolvedReferenceAnnotatorSink(myHolder)); } }