public function markDuplicate($duplicate)
    {
        Assert::boolean($duplicate);

        if (null === $this->state) {
            throw new NotLoadedException('The type descriptor is not loaded.');
        }

        $this->state = $duplicate ? BindingTypeState::DUPLICATE : BindingTypeState::ENABLED;
    }