public static function create($postType, $config, $throwExceptionOnInvalidWriter = false)
    {
        $className = 'Fillet\\Writer\\' . ucfirst($postType) . 'Writer';
        if(class_exists($className)) {
            /** @var WriterInterface $writer */
            $writer = new $className($config['destinationFolders'][$postType], $config);
            return $writer;
        }

        if($throwExceptionOnInvalidWriter) {
            throw new \Exception('There is no writer for ' . $postType);
        }
    }