code: public List<ChatParticipant> adapt(List<Participant> participants) {
          List<ChatParticipant> result = new ArrayList<>();
          if (participants != null && !participants.isEmpty()) {
              for (Participant p : participants) {
                  result.add(ChatParticipant.builder().populate(p).build());
              }
          }
          return result;
      }
docs: Translates Foundation conversation participants to Chat SDK conversation participants.
  
  @param participants Foundation conversation participants.
  @return Chat SDK result.