public TYPE_1 METHOD_1 ( TYPE_2 id ) { for ( TYPE_1 VAR_1 : VAR_2 ) { if ( ( VAR_1 . METHOD_2 ( ) ) == id ) { return VAR_1 ; } } return null ; } 

public TYPE_1 METHOD_1 ( TYPE_2 id ) { for ( TYPE_1 VAR_1 : VAR_2 ) { if ( VAR_1 . METHOD_2 ( ) . equals ( id ) ) { return VAR_1 ; } } return null ; } 
