void (GrVariable var) { final PsiElement parent = var.getParent(); if (((GrVariableDeclaration)parent).getVariables().length == 1) { parent.delete(); } else { GrExpression initializer = var.getInitializerGroovy(); if (initializer != null) initializer.delete(); //don't special check for tuple, but this line is for the tuple case var.delete(); } }