code: public List<ChatMessageStatus> adaptEvents(List<DbOrphanedEvent> dbOrphanedEvents) {
  
          List<ChatMessageStatus> statuses = new ArrayList<>();
  
          Parser parser = new Parser();
          for (DbOrphanedEvent event : dbOrphanedEvents) {
              OrphanedEvent orphanedEvent = parser.parse(event.event(), OrphanedEvent.class);
              statuses.add(ChatMessageStatus.builder().populate(orphanedEvent.getConversationId(), orphanedEvent.getMessageId(), orphanedEvent.getProfileId(),
                      orphanedEvent.isEventTypeRead() ? LocalMessageStatus.read : LocalMessageStatus.delivered,
                      DateHelper.getUTCMilliseconds(orphanedEvent.getTimestamp()), (long) orphanedEvent.getConversationEventId()).build());
          }
  
          return statuses;
      }
docs: Translates Orphaned events to message statuses.
  
  @param dbOrphanedEvents Orphaned events received when paging back message history.
  @return Message statuses to be applied to appropriate messages.