private function setFormData()
    {
        $postData = $this->getPostData();
        $currentSetting = $this->getSettings();
        $listSettings = [];

        if ($currentSetting === 'list') {
            $listSettings = $this->getListSettings();
        }

        if ($currentSetting && !isset($postData[self::SOURCE_RADIO_NAME])) {
            $this->sourceElement->setValue($currentSetting);
        }

        if (!empty($listSettings) && !isset($postData[self::SOURCE_LIST_NAME])) {
            $this->sourceDomainsElement->setValue(implode("\n", $listSettings));
        }

        if (isset($postData[self::SOURCE_RADIO_NAME]) && array_key_exists($postData[self::SOURCE_RADIO_NAME], $this->getSourceOptions())) {
            $this->sourceElement->setValue($postData[self::SOURCE_RADIO_NAME]);
        }

        if (isset($postData[self::SOURCE_LIST_NAME])) {
            $this->sourceDomainsElement->setValue($postData[self::SOURCE_LIST_NAME]);
        }
    }