Bug 94651 conver to new for loop quick assist: variable name proposals should include inserted name and standard proposals
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ConvertForLoopProposal.java
doInferElement();
		doFindAndReplaceInBody(rewrite);
		AST ast= fOldForStatement.getAST();
		fEnhancedForStatement= ast.newEnhancedForStatement();
		ASTNode theBody= rewrite.createMoveTarget(fOldForStatement.getBody());
		fEnhancedForStatement.setBody((Statement)theBody);
		fEnhancedForStatement.setExpression(createExpression(rewrite));
		fEnhancedForStatement.setParameter(fParameterDeclaration);
		addLinkedPosition(rewrite.track(fParameterDeclaration.getName()), true, ConvertForLoopProposal.ELEMENT_KEY_REFERENCE);
		addProposalsForElement();
		rewrite.replace(fOldForStatement, fEnhancedForStatement, null);
	}
	private Expression createExpression(ASTRewrite rewrite) {
		if (fCollectionIsMethodCall){
			MethodInvocation methodCall= (MethodInvocation) rewrite.createMoveTarget(fMethodInvocation);
			return methodCall;
		}
		else return fCollectionName;
	}
	private String[] addProposalsForElement() {
		ICompilationUnit icu= getCompilationUnit();
		IJavaProject javaProject= icu.getJavaProject();
		int dimensions= fOldCollectionTypeBinding.getDimensions() - 1;
		String[] proposals= StubUtility.getLocalNameSuggestions(javaProject, ConvertForLoopProposal.ELEMENT_KEY_REFERENCE,
			dimensions, getUsedVariableNames());
		for (int i= 0; i < proposals.length; i++) {
			String proposal= proposals[i];
			addLinkedPositionProposal(ConvertForLoopProposal.ELEMENT_KEY_REFERENCE, proposal, null);
		}