public TYPE_1 METHOD_1 ( java.util.List < java.lang.String > values , TYPE_2 field ) { TYPE_3 value = new TYPE_3 ( ) ; value . setValue ( values . get ( 0 ) ) ; return value ; } 

public TYPE_1 METHOD_1 ( java.util.List < java.lang.String > values , TYPE_2 field ) { TYPE_3 value = new TYPE_3 ( ) ; if ( value != null ) { value . setValue ( values . get ( 0 ) ) ; } return value ; } 
