I've been looking for the Eclipse JDT refactoring tool which allows me to quickly change
if (...) {
Object x = blablabla;
}
to
Object x;
if (...) {
x = blablabla;
}
// insert code using x here
But I can't find it. Does something like that exist?