} else if (variableDeclaration.getParent() instanceof VariableDeclarationExpression) { VariableDeclarationExpression expression= (VariableDeclarationExpression)variableDeclaration.getParent();  VariableDeclarationRewrite.rewriteModifiers(expression, Modifier.FINAL, 0, rewrite, null);  for (Iterator iter= expression.fragments().iterator(); iter.hasNext();) { VariableDeclarationFragment fragment= (VariableDeclarationFragment)iter.next(); accessedInside.remove(fragment); }
	private final void moveToBlock(Statement[] toMove, ListRewrite statements, final List/*<VariableDeclarationFragment>*/ accessedAfter, final List/*<VariableDeclaration>*/ accessedInside, final ASTRewrite rewrite) {		for (int i= 0; i < toMove.length; i++) {			ASTNode node= toMove[i];			if (node instanceof VariableDeclarationStatement) {				VariableDeclarationStatement statement= (VariableDeclarationStatement)node;				final ListRewrite blockRewrite= getListRewrite(statement, rewrite);								splitVariableDeclarationStatement(statement, createSplitSelectedOperator(accessedAfter, accessedInside, rewrite, statements, blockRewrite), rewrite);								for (Iterator iter= statement.fragments().iterator(); iter.hasNext();) {					accessedInside.remove(iter.next());				}			} else {				insertNodeAtEnd(rewrite, statements, node);			}		}				while (!accessedInside.isEmpty()) {			VariableDeclaration variableDeclaration= (VariableDeclaration)accessedInside.get(0);			if (variableDeclaration instanceof SingleVariableDeclaration) {				if (ASTNodes.findModifierNode(Modifier.FINAL, ASTNodes.getModifiers(variableDeclaration)) == null) {					ModifierRewrite.create(rewrite, variableDeclaration).setModifiers(Modifier.FINAL, Modifier.NONE, null);				}				accessedInside.remove(0);			} else {				VariableDeclarationStatement statement= (VariableDeclarationStatement)variableDeclaration.getParent();				final ListRewrite blockRewrite= getListRewrite(statement, rewrite);								splitVariableDeclarationStatement(statement, createSplitUnselectedOperator(accessedInside, rewrite, blockRewrite), rewrite);								for (Iterator iter= statement.fragments().iterator(); iter.hasNext();) {					VariableDeclarationFragment fragment= (VariableDeclarationFragment)iter.next();					accessedInside.remove(fragment);				}			}		}	}