protected void deleteOldVariableDeclaration(VariableBindingManager manager) {
AST ast = manager.getFirstReference().getAST();
VariableDeclarationStatement statement = createNewVariableDeclarationStatement(
manager, ast);
int firstReferenceIndex = getFirstReferenceListIndex(manager);
Block block = Helper.getParentBlock(manager.getFirstReference());
// get the list rewriter for the statments list
ListRewrite statementsListRewrite = rewrite.getListRewrite(block,
Block.STATEMENTS_PROPERTY);
// add insert-at command to the protocol
statementsListRewrite.insertAt(statement, firstReferenceIndex, null);