public void add ( TYPE_1 VAR_1 ) throws TYPE_2 { if ( VAR_2 . contains ( VAR_1 ) ) { throw new TYPE_2 ( ) ; } VAR_2 . add ( VAR_3 ) ; } 

public void add ( TYPE_1 VAR_1 ) throws TYPE_2 { if ( VAR_2 . contains ( VAR_1 ) ) { throw new TYPE_2 ( ) ; } VAR_2 . add ( VAR_1 ) ; } 
