void (@NotNull GrVariableDeclaration variableDeclaration) { checkDuplicateModifiers(myHolder, variableDeclaration.getModifierList(), null); if (variableDeclaration.isTuple()) { final GrModifierList list = variableDeclaration.getModifierList(); final PsiElement last = PsiUtil.skipWhitespacesAndComments(list.getLastChild(), false); if (last != null) { final IElementType type = last.getNode().getElementType(); if (type != GroovyTokenTypes.kDEF) { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("tuple.declaration.should.end.with.def.modifier")).range(list).create(); } } else { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("tuple.declaration.should.end.with.def.modifier")).range(list).create(); } } else { GrTypeParameterList typeParameterList = findChildOfType(variableDeclaration, GrTypeParameterList.class); if (typeParameterList != null) { myHolder.newAnnotation(HighlightSeverity.ERROR, GroovyBundle.message("type.parameters.are.unexpected")).range(typeParameterList).create(); } } }