code: static void transformMappedBys(EntityType entityType, Map<String, Attribute> newAttributes) {
      if (newAttributes.isEmpty()) {
        return;
      }
  
      stream(entityType.getAtomicAttributes())
          .filter(Attribute::isMappedBy)
          .forEach(attr -> transformMappedBy(attr, newAttributes));
    }
docs: Changes the 'mappedBy' property of all {@link AttributeType#ONE_TO_MANY} attributes of an
  {@link EntityType} to other, new Attributes. Does nothing for mappedBy attributes whose IDs are
  not present in the supplied Map.
  
  @param entityType the EntityType to update
  @param newAttributes a Map of (old) Attribute IDs and new Attributes