We always had code style settings files checked into git.
However no other IDEA projects files are checked in, because a) it is easy to create the project from build.gradle and b) unintended changes to other project files happen too often (for example because of slightly different IDEA versions).
In the past you could just create a project and IDEA used the existing project files.
Now it warns that there is an existing project folder and to continue with project setup you have to let IDEA delete the old folder.
So what is the recommended way to have only code style settings (or other part of the settings) checked-in/shared by the team?