private function createField($type, $name, $value, $inner)
    {
        if ($this->hasOptionsMethod($name)) {
            $inner = array_merge($inner, ['options' => $this->getOptions($name)]);
        }

        return $this->fields->create($type, $name, $this->getValue($name), $inner);
    }