public function createPaletteCollection()
    {
        if ($this->paletteCollection) {
            $this->finishPaletteCollection();
        }

        $paletteCollection = $this->paletteCollectionClass->newInstance();

        $event = new CreatePaletteCollectionEvent($paletteCollection, $this);
        $this->dispatchEvent($event);
        $this->paletteCollection = $event->getPaletteCollection();

        return $this;
    }