public function getForeignModelConfig($sourceFile, $modelName)
    {
        $config = ['class' => Model::className()];
        if (isset($this->foreignModelsConfig[$modelName])) {
            $config = array_merge($config, $this->foreignModelsConfig[$modelName]);
        }
        $config['modelName'] = $modelName;
        $config['sourceFile'] = $sourceFile;
        $config['interface'] = $this;

        return $config;
    }