Please allow to configure compiler resource patterns and excludes. More details about that settings can be found here
Those are the IDEA settings, e.g. not project or module settings, right?
No, that is a part of project settings.
Can you tell me where can one configure it per project?
Project Settings | Compiler | Resource patterns
Project Settings | Compiler | Excludes
Got it. Makes sense now.