code: public static function getNamedType($type)
      {
          if ($type === null) {
              return null;
          }
          while ($type instanceof WrappingType) {
              $type = $type->getWrappedType();
          }
  
          return $type;
      }
docs: @param Type $type
  
  @return ObjectType|InterfaceType|UnionType|ScalarType|InputObjectType|EnumType
  
  @api