Suppose you have a multi-module IDEA project, and you want to rename both the project and the project folder — without breaking everything.
The first part is easy. The latter part seems less straightforward. If you simply rename it in the Explorer, the change won't be reflected anywhere in the project's settings, and all your modules are going to disappear.
What is the safest and reasonably fast way to do it?