public void METHOD_1 ( TYPE_1 < TYPE_2 > VAR_1 ) { if ( METHOD_2 ( ) . contains ( VAR_1 ) ) { METHOD_2 ( ) . remove ( VAR_1 ) ; } METHOD_2 ( ) . add ( VAR_1 ) ; }
public void METHOD_1 ( TYPE_1 < TYPE_2 > VAR_1 ) { if ( ! ( METHOD_2 ( ) . contains ( VAR_1 ) ) ) { METHOD_2 ( ) . add ( VAR_1 ) ; } }