static function forExtension($ext) { if (isset(self::$map[$ext])) { return self::$map[$ext]; } return null; }