Record refactorings

Intermediate pull request, so its touched by all the manual testing

Things not implemented yet:
* refactoring argument map is current null (I don't think IJ gives you this ... might have to construct it by hand)