public static TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { if ( ( VAR_1 != null ) && ( ( VAR_2 . size ( ) ) > 0 ) ) { for ( final TYPE_1 item : VAR_2 ) { if ( ( item . METHOD_2 ( ) ) == VAR_1 ) { return item ; } } } return null ; }

public static TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { if ( ( VAR_1 != null ) && ( ( VAR_2 . size ( ) ) > 0 ) ) { for ( final TYPE_1 item : VAR_2 ) { if ( item . METHOD_2 ( ) . equals ( VAR_1 ) ) { return item ; } } } return null ; }
