void (ResourceRootConfiguration cfg, CompilerConfigurationImpl compilerConfiguration) { for (String pattern : compilerConfiguration.getResourceFilePatterns()) { Matcher matcher = SIMPLE_NEGATIVE_PATTERN.matcher(pattern); if (matcher.matches()) { cfg.excludes.add("**/" + matcher.group(1)); } } }