public static function getTypeFromFileName(string $fileName): string
    {
        $fileExtension = strtolower(Miscellaneous::getFileExtension($fileName));

        // Oops, incorrect type/extension of configuration file
        if (false === (new static())->isCorrectType($fileExtension)) {
            throw UnknownConfigurationFileTypeException::createException($fileExtension);
        }

        return $fileExtension;
    }