How to prevent IntelliJ IDEA / PHPStorm from marking a folder as a «source root»?

Step 1

Prevent the «Composer» submodule of PHPStorm from marking a folder as a «source root»

Step 2

How to quickly unmark all folders as «source roots» in IntelliJ IDEA / PHPStorm via the module (*.iml) file direct modification?

Step 3

How to unmark a folder as a «source root» via the IntelliJ IDEA / PHPStorm user interface?

Step 4

I set an excluded subfolder (var) as a «Source Root», and it prevented IntelliJ IDEA from marking my important subfolders as «Source Root»:
2024-05-10--11-51-05