IDE reverse auto-complete
It just occurred to me that the following might be possible, and not only is it possible, Eclipse already does it.
Normally IDE auto-complete works forwards, i.e. you declare your variables, and then when you come to use them, they are suggested.
But it can/does also work the other way around. You use a variable which is undefined, then place your cursor above the usage and start to declare it, and it fills in name of the variable you want to define for you.

Nice feature. I’m a heavy user of the Ctrl + 1 menu. I first declare my variable, like you did in bar(myVar1, myVar2), then move the cursor to that line, press Ctrl + 1, then choose to have Eclipse declare the two variables declared as local variables. Since I’ve gotten to know this feature I’ve stopped declaring variables, but usually first use them, then ask Eclipse to declare them for me. Saved me a lot of typing.