private bool ShouldIncludeProject(Project project) { var isIncluded = !Include.Any() || Include.Any(regex => Regex.IsMatch(project.FilePath, regex)); return(isIncluded && Exclude.All(regex => !Regex.IsMatch(project.FilePath, regex))); }