public static function get_filetypes_browser_data($onlytypes, $allowall, $current) {

        $params = self::validate_parameters(self::get_filetypes_browser_data_parameters(),
            compact('onlytypes', 'allowall', 'current'));

        $util = new filetypes_util();

        return ['groups' => $util->data_for_browser($params['onlytypes'], $params['allowall'], $params['current'])];
    }