Bug 37594 Quick fix for 'hidden variable'
When you get the compiler warning stating that you have a local variable in a method which is over-riding a field in your class, I would like to have the QuickFix option to rename the local variable and all its occurences in the method.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/QuickAssistProcessor.java
}
		MethodInvocation method= (MethodInvocation) parent;
		if (!"equals".equals(method.getName().getIdentifier())) { 
			return false;
		}
		List arguments= method.arguments();
		if (arguments.size() != 1) { 
			return false;
		}
		Expression right= (Expression) arguments.get(0);
		ITypeBinding binding = right.resolveTypeBinding();
		if (!(binding.isClass() || binding.isInterface())) { 
			return false;
		}
		Expression left= method.getExpression();
		ASTRewrite rewrite;
		if (left == null) { 
			rewrite= new ASTRewrite(method.getParent());
			AST ast= rewrite.getAST();
			MethodInvocation replacement= ast.newMethodInvocation();
			replacement.setName((SimpleName) rewrite.createCopy(method.getName()));
			replacement.arguments().add(ast.newThisExpression());
			replacement.setExpression((Expression) rewrite.createCopy(right));
			rewrite.markAsReplaced(method, replacement, null);
		} else if (right instanceof ThisExpression) { 
			rewrite= new ASTRewrite(method.getParent());
			MethodInvocation replacement= rewrite.getAST().newMethodInvocation();
			replacement.setName((SimpleName) rewrite.createCopy(method.getName()));
			replacement.arguments().add(rewrite.createCopy(left));
			rewrite.markAsReplaced(method, replacement, null);