docs: static boolean includePreference(File file, Set<Pattern> excludePattern, Set<Pattern> includePattern, boolean includeByDefault) {
          boolean include = includeByDefault;
  
          // Iterate over exclude patterns, if there is any match, exclude
          if (include) {
              for (Pattern pattern : excludePattern) {
                  Matcher excludeMatcher = pattern.matcher(file.getAbsolutePath());
                  if (excludeMatcher.find()) {
                      include = false;
                      break;
                  }
              }
          }
  
          // Iterate over include patterns, if there is any match, include
          if (!include) {
              for (Pattern pattern : includePattern) {
                  Matcher includeMatcher = pattern.matcher(file.getAbsolutePath());
                  if (includeMatcher.find()) {
                      include = true; // If we are here, we are overriding an exclude
                      break;
                  }
              }
          }
  
          return include;
      }