public function addInitializer(InitializerInterface $initializer, int $priority = 0)
    {
        if (empty($this->initializers[$priority])) {
            $this->initializers[$priority] = [];
        }

        $this->initializers[$priority][] = $initializer;
        $this->sortedInitializers = [];
    }