public function createManialinkAction(ManialinkInterface $manialink, $callable, $args, $permanent = false)
    {
        $class = $this->class;
        /** @var Action $action */
        $action = new $class($callable, $args, $permanent);
        $this->actions[$action->getId()] = $action;
        $this->actionsByManialink[$manialink->getId()][$action->getId()] = $action;
        $this->manialinkByAction[$action->getId()] = $manialink;

        return $action->getId();
    }