protected function add(&$attributes, $actions)
    {
        $index  = 0;
        $childs = [];
        foreach ($actions as $name => $callback) {
            if (!$callback instanceof Closure) {
                continue;
            }
            $called = call_user_func($callback, $this->entity);
            if (empty($called) or ! is_array($called)) {
                continue;
            }
            $fluent                                = $this->createMenuItem($name, $called);
            $childs['dependable-action-' . $index] = $fluent;
            ++$index;
        }
        $this->menu->offsetSet('childs', array_merge($childs, $attributes['childs']));
    }