docs: protected void mergeRelationships(final Map<SpecNode, CSNodeWrapper> nodeMapping, final DataProviderFactory providerFactory) {
          final CSNodeProvider nodeProvider = providerFactory.getProvider(CSNodeProvider.class);
  
          for (final Map.Entry<SpecNode, CSNodeWrapper> nodes : nodeMapping.entrySet()) {
              // Only process relationship nodes
              if (!(nodes.getKey() instanceof SpecNodeWithRelationships)) continue;
  
              // Get the matching node and entity
              final SpecNodeWithRelationships specNode = (SpecNodeWithRelationships) nodes.getKey();
              final CSNodeWrapper entity = nodes.getValue();
  
              // Check if the node or entity have any relationships, if not then the node doesn't need to be merged
              if (!specNode.getRelationships().isEmpty() || entity.getRelatedToNodes() != null && !entity.getRelatedToNodes().isEmpty()) {
                  // merge the relationships from the spec topic to the entity
                  mergeRelationship(nodeMapping, specNode, entity, nodeProvider);
              }
          }
      }