protected static function is_format_supported($format) {
        $formats = self::fetch_supported_formats();

        $format = trim(\core_text::strtolower($format));
        return in_array($format, $formats);
    }