public static function getMimeFor(string $extension): ?string
    {
        $extensions = static::getExtensions();
        if (isset($extensions[$extension])) {
            return $extensions[$extension];
        }

        return null;
    }