code: private static boolean isIndexable(String filename, List<String> includes, List<String> excludes) {
          boolean excluded = isExcluded(filename, excludes);
          if (excluded) return false;
  
          return isIncluded(filename, includes);
      }
docs: We check if we can index the file or if we should ignore it
  
  @param filename The filename to scan
  @param includes include rules, may be empty not null
  @param excludes exclude rules, may be empty not null