void (@NotNull GrArrayTypeElement typeElement) { GrTypeElement componentTypeElement = typeElement.getComponentTypeElement(); PsiType componentType = componentTypeElement.getType(); if (PsiTypes.voidType().equals(componentType)) { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("illegal.type.void")).range(componentTypeElement).create(); } else { super.visitArrayTypeElement(typeElement); } }