void (Project project, GrVariableDeclaration declaration) { GrVariable[] variables = declaration.getVariables(); String modifiers = declaration.getModifierList().getText(); GrStatement[] sts = new GrStatement[variables.length]; for (int i = 0; i < variables.length; i++) { sts[i] = createVarDeclaration(project, variables[i], modifiers, declaration.isTuple()); } declaration = GroovyRefactoringUtil.addBlockIntoParent(declaration); for (int i = sts.length - 1; i >= 0; i--) { declaration.getParent().addAfter(sts[i], declaration); } declaration.delete(); }