code: public static void setGeneratedUniqueIdentifier(ModelElementType type, ModelElementInstance modelElementInstance, boolean withReferenceUpdate) {
      setNewIdentifier(type, modelElementInstance, ModelUtil.getUniqueIdentifier(type), withReferenceUpdate);
    }
docs: Set unique identifier if the type has a String id attribute
  
  @param type the type of the model element
  @param modelElementInstance the model element instance to set the id
  @param withReferenceUpdate  true to update id references in other elements, false otherwise