code: public Mail findMail(int id) {
      if (items == null) {
        return null;
      }
  
      for (Mail m : items) {
        if (m.getId() == id) {
          return m;
        }
      }
  
      return null;
    }
docs: Finds a mail by his id if displayed in this adapter