/**
* Creates a new Descriptor from the given Reflector.
*
* @param ReturnTag $data
*
* @return ReturnDescriptor
*/
public function create($data)
{
$descriptor = new ReturnDescriptor($data->getName());
$descriptor->setDescription($data->getDescription());
$descriptor->setTypes($this->builder->buildDescriptor(new Collection($data->getTypes())));
return $descriptor;
}