private function getParentJoins(): array
    {
        if (empty($this->getParentModules())) {
            return [];
        }

        $result = [];
        foreach ($this->table->associations() as $association) {
            if (! $this->isSupportedJoinAssociation($association)) {
                continue;
            }

            if (! $this->isParentModuleAssociation($association)) {
                continue;
            }

            $conditions = $this->getParentJoin($association);
            if (empty($conditions)) {
                continue;
            }

            $result[$association->getName()] = $conditions;
        }

        return $result;
    }