question: private ArrayList < String > splitValues ( ArrayList < String > values , PresetItem preset , String key ) { ArrayList < String > result = new ArrayList < String > ( ) ; String delimiter = Matcher . quoteReplacement ( "\\Q" + preset . getDelimiter ( key ) + "\\E" ) ; if ( values == null ) { return null ; } for ( String v : values ) { if ( v == null ) { return null ; } for ( String s : v . split ( delimiter ) ) { result . add ( s . trim ( ) ) ; } } return result ; }
target:  Split multi select values with the preset defined delimiter character