code: public function getTypeNames()
      {
          $names = $this->factories->ids();
          if ([] !== $fallback = $this->fallbackFactory->getIds()) {
              $names = array_unique(array_merge($fallback, $names));
          }
  
          return $names;
      }
docs: Obtain the list of registered type names.
  
  @return array