boolean (@NotNull File file, @NotNull File srcRoot) { ResourcePatterns patterns = myCompiledPatterns; if (patterns == null) { myCompiledPatterns = patterns = new ResourcePatterns(this); } return patterns.isResourceFile(file, srcRoot); }