Settings/Preferences | Editor | File Types --> Ignore files and folders
This will permanently hide all of such files. Since this is an IDE-wide setting, it will affect ALL projects and such files will be excluded from the project.
Alternatively -- use Settings/Preferences | Appearance & Behavior | Scopes
and define custom scope with desired files only (or exclude all unwanted). This is per-project setting and you can define as many scopes as you want.
Once done -- you can switch to that scope in Project View panel (choose desired scope instead of default "Project").