code: public function getForeignModels()
      {
          if (is_null($this->_models)) {
              $this->_models = [];
              foreach ($this->sourceFiles as $sourceFile) {
                  $modelName = $this->getForeignModelName($sourceFile->id);
                  $this->_models[$modelName] = Yii::createObject($this->getForeignModelConfig($sourceFile, $modelName));
              }
          }
  
          return $this->_models;
      }
docs: Get foreign models.
  
  @return [[@doctodo return_type:getForeignModels]] [[@doctodo return_description:getForeignModels]]