@SuppressWarnings("unchecked")
  @NonNull public CMARichBlock setContent(@NonNull List<CMARichNode> content) {
    if (content == null) {
      throw new NullPointerException("content is null");
    }

    this.content.clear();
    this.content.addAll(content);

    return this;
  }
@ SuppressWarnings ( "unchecked" ) @ NonNull public CMARichBlock setContent ( @ NonNull List < CMARichNode > content ) { if ( content == null ) { throw new NullPointerException ( "content is null" ) ; } this . content . clear ( ) ; this . content . addAll ( content ) ; return this ; }
Updates the old content by overwriting it with the new content.

@param content the new content to be used.
@return this instance for chaining.