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/ConvertIterableLoopProposal.java
* @param unit the compilation unit containing the for statement
	 * @param statement the for statement to be converted
	 * @param relevance the relevance of the proposal
	 * @param image the image of the proposal
	 */
	public ConvertIterableLoopProposal(final String name, final ICompilationUnit unit, final ForStatement statement, final int relevance, final Image image) {
		super(name, unit, null, relevance, image);
		fStatement= statement;
		fAst= statement.getAST();
	}
	private String[] computeElementNames() {
		final IJavaProject project= getCompilationUnit().getJavaProject();
		String[] full= StubUtility.getLocalNameSuggestions(project, GROUP_ELEMENT, 0, getExcludedNames());
		for (int index= 0; index < full.length; index++)
			addLinkedPositionProposal(GROUP_ELEMENT, full[index], null);
		String[] shortened= StubUtility.getLocalNameSuggestions(project, GROUP_ELEMENT.substring(0, 1), 0, getExcludedNames());
		for (int index= 0; index < full.length; index++)
			addLinkedPositionProposal(GROUP_ELEMENT, shortened[index], null);
		return full;
	}
	private String[] getExcludedNames() {
		final CompilationUnit unit= (CompilationUnit) fStatement.getRoot();
		final IBinding[] before= (new ScopeAnalyzer(unit)).getDeclarationsInScope(fStatement.getStartPosition(), ScopeAnalyzer.VARIABLES);
		final IBinding[] after= (new ScopeAnalyzer(unit)).getDeclarationsAfter(fStatement.getStartPosition() + fStatement.getLength(), ScopeAnalyzer.VARIABLES);
		final String[] names= new String[before.length + after.length];
		for (int index= 0; index < before.length; index++)
			names[index]= before[index].getName();
		for (int index= 0; index < after.length; index++)
			names[index + before.length]= after[index].getName();
		return names;