Step 1
Prevent the «Composer» submodule of PHPStorm from marking a folder as a «source root»
Step 2
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»: