In some cases, IntelliJ will present a usage view window asking if the user is certain about performing the refactoring. This interrupts RefMerge and causes several problems, such as refactorings not being inverted. As a workaround, I currently check if the usage view appears after a given refactoring. If so, I call the close method. I think this means that some refactorings do not get inverted/replayed, however.