protected function createLocalResourceFileSettings(Theme $theme, string $type, string $filename): ResourceSettings
    {
        return new Settings([
            'key'       => $this->crc(sprintf('%s%s%s', $theme->getKey(), $type, $filename)),
            'filename'  => $filename,
            'url'       => $this->getThemeBaseUrl($theme),
            'theme'     => $theme,
            'async'     => strpos($type, 'async') !== false,
            'defer'     => strpos($type, 'defer') !== false,
            'order'     => ++$this->order,
        ]);
    }