protected function getReferences(array $values, Encoder $encoder)
    {
        return array_map(
            function ($value) use ($encoder) {
                return $encoder->encodeReference($value);
            },
            $values
        );
    }