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

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