public function plugins($plugins, bool $overwrite = true)
    {
        if ($plugins instanceof Collection) {
            $plugins = $plugins->toArray();
        }
        if ($overwrite) {
            $this->plugins = $plugins;
        } else {
            $this->plugins = array_replace_recursive($this->plugins, $plugins);
        }

        return $this;
    }