public TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { if ( VAR_1 == null ) { return new TYPE_1 ( ) { public void METHOD_2 ( ) { } } ; } final TYPE_2 VAR_2 = METHOD_3 ( VAR_1 ) ; VAR_3 . add ( VAR_2 ) ; return new TYPE_1 ( ) { public void METHOD_2 ( ) { VAR_3 . remove ( VAR_2 ) ; } } ; }

public TYPE_1 METHOD_1 ( final TYPE_2 VAR_1 ) { if ( VAR_1 == null ) { return new TYPE_1 ( ) { public void METHOD_2 ( ) { } } ; } VAR_3 . add ( VAR_1 ) ; return new TYPE_1 ( ) { public void METHOD_2 ( ) { VAR_3 . remove ( VAR_1 ) ; } } ; }
