Spec<RelativePath> (boolean caseSensitive) { List<Spec<RelativePath>> matchers = new ArrayList<>(); for (String include : myFilePattern.includes) { PatternMatcher matcher = PatternMatcherFactory.getPatternMatcher(true, caseSensitive, include); matchers.add(new MyRelativePathSpec(matcher)); } return Specs.union(matchers); }