void (@NotNull GrNamedArgument argument) { PsiElement parent = argument.getParent(); if (parent instanceof GrArgumentList) { final PsiElement pParent = parent.getParent(); if (pParent instanceof GrIndexProperty) { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("named.arguments.are.not.allowed.inside.index.operations")).create(); } } }