private TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { for ( TYPE_1 i : VAR_1 . METHOD_2 ( ) ) { if ( ( i . getType ( ) ) != ( VAR_2 ) ) return i ; } return null ; } 

private TYPE_1 METHOD_1 ( TYPE_2 VAR_1 ) { for ( TYPE_1 i : VAR_1 . METHOD_2 ( ) ) { if ( ( i != null ) && ( ( i . getType ( ) ) != ( VAR_2 ) ) ) return i ; } return null ; } 
