public function addReferences($type, $nodeIdList, $field = null)
    {
        if (!is_array($nodeIdList)) {
            $nodeIdList = [$nodeIdList];
        }

        $sourceId = $this->getNode()->id();

        foreach ($nodeIdList as $nodeId) {
            $this->references[$type . $nodeId] = new NodeReference($sourceId, $nodeId, $type, $field);
        }
    }