public static function dumpHandlers() {
        $result = [];

        foreach (self::$handlers as $event_name => $nested) {
            $handlers = call_user_func_array('array_merge', static::getHandlers($event_name));
            $result[$event_name] = array_map('format_callback', $handlers);
        }

        return $result;
    }