code: public function getValue($name)
      {
          $lookup = $this->getNameLookup();
  
          if (! is_string($name)) {
              return null;
          }
  
          return $lookup[$name] ?? null;
      }
docs: @param string|mixed[] $name
  
  @return EnumValueDefinition|null