My CSS files are not in a web resource directory, but under a source root, because a servlet dynamically merges and minifies them (or not, depending on a debug request param).
Unfortunately now all references like
are highlighted as an error ("cannot resolve file") that cannot even be suppressed.
I could only turn off the complete "Invalid CSS element" inspection, but that is much too valuable for other cases.
I just hate that red rectangle and stripes in the right gutter.
Is there any way I can make IDEA resolve the references correctly (or at least turn this specific error to info level)?