Bug 119923 [clean up][infrastructure] ConvertForLoop should use ContextSensitiveImportRewriteContext
Version: 3.2.0 Build id: I20051206-1200
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ConvertForLoopProposal.java
public boolean visit(SimpleName node) {
					if (node.getIdentifier().equals(name) && node.resolveTypeBinding().getErasure() != fErasure) {
						conflict[0]= true;
						return false;
					}
					return super.visit(node);
				}
				
			});
			if (conflict[0])
				return RES_NAME_CONFLICT;
			
			return RES_NAME_UNKNOWN;
		}
		
		private boolean doesDeclare(ITypeBinding declaredClass, ITypeBinding declaringClass) {
			ITypeBinding curr= declaredClass.getDeclaringClass();
			while (curr != null && declaringClass != curr) {
				curr= curr.getDeclaringClass();
			}
			return curr != null;
		}	
	}
	/**
	 * Visitor class for finding all references to a certain Name within the
	 * specified scope (e.g. finds all references to a local variable within the
	 * Body of a For loop).
	 */
	private class LocalOccurencesFinder extends ASTVisitor {
		private List fOccurences;