code: public static function getMimeFor(string $extension): ?string
      {
          $extensions = static::getExtensions();
          if (isset($extensions[$extension])) {
              return $extensions[$extension];
          }
  
          return null;
      }
docs: fetch mimetype for given file-extension
  @param  string $extension
  @return string|null