public function getMappedSecondEntitiesByEntityType($secondEntityName)
    {
        $secondEntities = [];
        foreach ($this->data as $data) {
            $secondEntity = $this->createAndReturnNewSecondEntity($data, $secondEntityName);
            if ($secondEntity) {
                $secondEntities[] = $secondEntity;
            }
        }

        return $secondEntities;
    }