If I have a constant BAR in Foo, which I will use in a class C I\'ll have to write
Object o = Foo.BAR + \"...\";
which I can use Ctrl-Shift-M i
If I were faced with such a challenge, I'd probably write a small program to do it for me. Ruby and Python (JRuby and Jython?) are pretty well suited for the task, although you could do it in Java too.
OK, so that'll probably take you at least the same amout of time as doing it by hand, but at least you'll be having fun :).