code: @NonNull public CMARichText setMarks(@NonNull List<CMARichMark> marks) {
      this.marks.clear();
      this.marks.addAll(marks);
      return this;
    }
docs: Updates the marks of this text.
  
  @param marks defines which marks to be used.
  @return this instance for chaining.
  @throws NullPointerException if marks is null.