code: private function getBundlePackageName(string $className): string
      {
          if ('Bundle' === substr($className, -6)) {
              $className = substr($className, 0, -6);
          }
  
          return Container::underscore($className);
      }
docs: Returns a bundle package name emulating what a bundle extension would look like.