public TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 METHOD_1 ( TYPE_3 VAR_2 ) { TYPE_4 < TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 > iterator = VAR_3 . METHOD_2 ( ) ; while ( iterator . METHOD_3 ( ) ) { TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 VAR_4 = iterator . METHOD_4 ( ) ; if ( VAR_5 . equals ( VAR_2 ) ) { iterator . remove ( ) ; return VAR_4 ; } } return null ; }

public TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 METHOD_1 ( TYPE_3 VAR_2 ) { TYPE_4 < TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 > iterator = VAR_3 . METHOD_2 ( ) ; while ( iterator . METHOD_3 ( ) ) { TYPE_1 < TYPE_2 , TYPE_3 > . VAR_1 VAR_4 = iterator . METHOD_4 ( ) ; if ( ( VAR_5 . compareTo ( VAR_2 ) ) == 0 ) { iterator . remove ( ) ; return VAR_4 ; } } return null ; }
