protected List < String > createOption ( final String option , final List < String > values ) { if ( values == null ) { return new ArrayList < String > ( ) ; } final List < String > list = new ArrayList < String > ( ) ; for ( String value : values ) { list . add ( option ) ; list . add ( value ) ; } return list ; }
Creates a list for the given option an empty list if the option s values is null