copyOf
Creates a new TextElementList with a copy of the given list.
Return
a new list with copied elements
Parameters
elements
the list to copy
Throws
if elements is null
Creates a new TextElementList with a copy of the given list.
a new list with copied elements
the list to copy
if elements is null