public function getSettingByName(string $name): FieldTypeInterface
    {
        return $this->getSettings()->collapse()->first(function ($setting) use ($name) {
            /** @var FieldTypeInterface $setting */
            return $name === $setting->getName();
        });
    }