docs: public static boolean isIndexable(boolean directory, String filename, List<String> includes, List<String> excludes) {
          logger.debug("directory = [{}], filename = [{}], includes = [{}], excludes = [{}]", directory, filename, includes, excludes);
  
          boolean isIndexable = isIndexable(filename, includes, excludes);
  
          // It can happen that we a dir "foo" which does not match the include name like "*.txt"
          // We need to go in it unless it has been explicitly excluded by the user
          if (directory && !isExcluded(filename, excludes)) {
              isIndexable = true;
          }
  
          return isIndexable;
      }