question: @ SuppressWarnings ( { "unchecked" , "rawtypes" } ) static < E extends Comparable < E > > AutoSortedCollection < E > createAutoSortedCollection ( Supplier < List < SortedListElement < E > > > listSup , Collection < ? extends E > values ) { List list = listSup . get ( ) ; if ( ! list . isEmpty ( ) ) { throw new IllegalStateException ( "List must be empty." ) ; } AutoSortedCollection < E > sortedCollection = new AutoListSortedCollection < > ( list , null ) ; sortedCollection . addAll ( values ) ; return sortedCollection ; }
target:  Construct new auto sorted collection using natural order.