public function addMappingToRenderer(
        $renderer,
        $data_field,
        $property,
        $object = null
    ) {
        if ($object !== null) {
            $property = $renderer->getPropertyNameToMap($object, $property);
        }

        $mapping = new SwatCellRendererMapping($property, $data_field);
        $this->renderers->addMappingToRenderer($renderer, $mapping);

        if ($object !== null) {
            $object->$property = $mapping;
        }

        return $mapping;
    }