static _getDefaultGlobDepthPattern(depth = Infinity, extensions = defaultExtensions) {
    // `.{${cfg.extensions.map(e => e.slice(1)).join(',')},}`;
    const extensionsGlobPart = `.{${extensions.map(extension => extension.slice(1)).join(',')},}`;
    if (depth === Infinity) {
      return `**/*${extensionsGlobPart}`;
    }
    if (depth > 1) {
      return `${`/*`.repeat(depth + 1)}${extensionsGlobPart}`;
    }
    if (depth === 0) {
      return `*${extensionsGlobPart}`;
    }
    return '';
  }
@protected
@param {number} depth
@param {string[]} extensions
@returns {string}