public function findActionByName($action)
    {
        $actions = $this->owner->getBetterButtonsActions();
        $formAction = false;

        foreach ($actions as $f) {
            if ($formAction) {
                break;
            }

            if ($f instanceof CompositeField) {
                $formAction = $f->fieldByName($action);
            } elseif ($f->getName() === $action) {
                $formAction = $f;
            }
        }

        if (!$formAction) {
            $utils = $this->owner->getBetterButtonsUtils();
            $formAction = $utils->fieldByName($action);
        }

        return $formAction;
    }