code: private static boolean hasNewMappedByAttrs(EntityType entityType, EntityType existingEntityType) {
      Set<String> mappedByAttrs =
          entityType.getOwnMappedByAttributes().map(Attribute::getName).collect(toSet());
  
      Set<String> existingMappedByAttrs =
          existingEntityType.getOwnMappedByAttributes().map(Attribute::getName).collect(toSet());
      return !mappedByAttrs.equals(existingMappedByAttrs);
    }
docs: Returns true if entity meta contains mapped by attributes that do not exist in the existing
  entity meta.
  
  @param entityType entity meta data
  @param existingEntityType existing entity meta data
  @return true if entity meta contains mapped by attributes that do not exist in the existing
  entity meta.