When I select
Refactoring > Move 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 to the new package as well?
EDIT: Seems like my original question is unclear so I'm providing an example.
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.