code: public function getType($name)
      {
          if (! isset($this->resolvedTypes[$name])) {
              $type = $this->loadType($name);
              if (! $type) {
                  return null;
              }
              $this->resolvedTypes[$name] = $type;
          }
  
          return $this->resolvedTypes[$name];
      }
docs: Returns type by it's name
  
  @param string $name
  
  @return Type|null
  
  @api