protected function createReturnsType(array $types, $annotated = false)
    {
        if (!$types) {
            return null;
        }

        $list = [];

        foreach ($types as $type) {
            $list[] = [
                'type' => $annotated ? 'return-type-annotation' : 'return-type-paramater',
                'data-type' => 'mixed' == $type ? 'variable' : $type,
                'mandatory' => false,
            ];
        }

        return [
            'type' => 'return-type',
            'list' => $list,
            'void' => empty($list),
        ];
    }