title: How to prevent IntelliJ IDEA from deleting unused packages during Rename refactoring?
body: <p>In Intellij IDEA, when I rename a method using Rename refactoring tool (which essentially replaces occurences of method's old name for its new one), IDEA also removes unused imports from files, where method name is replaced.</p>
  
  <p>This is not what I want to do. And even if I want to remove this redundant imports, I would like to do it in the whole project in a separate action, so it could be a separate commit.</p>
  
  <p>How can I disable this behavior? </p>
  
  <p>The version I use is 14.1.3 Ultimate.</p>
  
  <p>There is already similar question <a href="https://stackoverflow.com/questions/11154912/how-to-prevent-intellij-idea-from-deleting-unused-packages">How to prevent IntelliJ IDEA from deleting unused packages?</a>, but the option mentioned there (<code>Optimize imports on the fly</code>) has nothing to do with my problem. Actually I have it unchecked.</p>
  
  <p>Update: 
  It seems for me now that the only solution is to delete all unused imports before applying other refactoring tools.</p>