private int METHOD_1 ( int position ) { do { position -- ; TYPE_1 item = METHOD_2 ( position ) ; if ( item instanceof TYPE_2 ) { return ( ( TYPE_2 ) ( item ) ) . METHOD_3 ( ) ; } else if ( item instanceof TYPE_3 ) { break ; } } while ( position >= 0 ) ; return VAR_1 ; }

private int METHOD_1 ( int position ) { if ( position == 0 ) return VAR_1 ; do { position -- ; TYPE_1 item = METHOD_2 ( position ) ; if ( item instanceof TYPE_2 ) { return ( ( TYPE_2 ) ( item ) ) . METHOD_3 ( ) ; } else if ( item instanceof TYPE_3 ) { break ; } } while ( position > 0 ) ; return VAR_1 ; }
