Here's another pleasant surprise I've only discovered
recently: The Encapsulate Fields refactoring, in addition
to creating getters/setters for the encapsulated field,
also scans and converts all references to such fields
with calls to the appropriate methods. Moreover, and this
is the really exciting bit, it will correctly replace
assingnment expressions like the +=, -=
with the correct method calls (like i.f += 1 => i.setF( i.getF() +1).
Amazing! (maybe even more amazing is the fact that
even after 2+ years with IDEA, I still have not seen it...
Excellend job, JB!