replace repeated indexes with the list of values . concode_field_sep PreparedStatement preparedStatement concode_elem_sep List<String> fields concode_field_sep void setLong concode_elem_sep PreparedStatement getPreparedStatement concode_elem_sep int getIndex concode_elem_sep void setInt
void function ( String arg0 , List < String > arg1 ) { int loc0 = 0 ; for ( String loc1 : arg1 ) { preparedStatement . setString ( getIndex ( arg0 ) + loc0 , loc1 ) ; loc0 ++ ; } }