title: IntelliJ to move a class along with conflicted classes to a new package?
body: <p>When I select <code>Refactoring &gt; Move</code> on a Java class and as a result IntelliJ warns that'll cause conflicts for other classes. Is there a way to tell IntelliJ to move a class along with any classes that would have conflicts as well?</p>
  
  <p>EDIT: Seems like my original question is unclear so I'm providing an example.</p>
  
  <p>If I have classA that uses ClassB inside. If I move classA to another directory (different maven module), ClassA can no longer access classB. Ideally, IntelliJ would have an option to automatically move classB into the other directory as well. </p>