linkAllReferences(rewrite, occurences2);
linkAllReferences(rewrite, occurences2, positionGroups);
	private void replaceSingleVariableDeclaration(ASTRewrite rewrite, ArrayAccess arrayAccess, TextEditGroup group) {		VariableDeclarationFragment declarationFragment= (VariableDeclarationFragment)arrayAccess.getParent();		VariableDeclarationStatement declarationStatement= (VariableDeclarationStatement)declarationFragment.getParent();		// if could not infer THE_ELEMENT from infer step, we might		// be able to infer it from here		if (fParameterDeclaration == null) {			fParameterDeclaration= fAst.newSingleVariableDeclaration();		}		SimpleName theTempVariable= declarationFragment.getName();		SimpleName name= fAst.newSimpleName(theTempVariable.getIdentifier());		Type type= ASTNodeFactory.newType(getAst(), declarationFragment);		fParameterDeclaration.setName(name);		fParameterDeclaration.setType(type);		if (ASTNodes.findModifierNode(Modifier.FINAL, declarationStatement.modifiers()) != null) {			ModifierRewrite.create(rewrite, fParameterDeclaration).setModifiers(Modifier.FINAL, Modifier.NONE, group);		}				LocalOccurencesFinder finder2= new LocalOccurencesFinder(theTempVariable.resolveBinding(), fOldForStatement.getBody());		finder2.perform();		List occurences2= finder2.getOccurences();		linkAllReferences(rewrite, occurences2);		rewrite.replace(declarationStatement, null, group);		return;	}