boolean (String relativePath) { if (myIncludePatterns.size() == 0) { return true; } return myCouldBeIncludedPatterns.stream().anyMatch(couldBeIncludedPattern -> matchPatternStart(couldBeIncludedPattern, relativePath)); }