private TYPE_1 METHOD_1 ( TYPE_2 VAR_1 , int index ) { while ( ( index -- ) > 0 ) { TYPE_1 position = VAR_1 . METHOD_2 ( index ) ; if ( position . METHOD_3 ( ) ) return position ; } return null ; }
private int METHOD_1 ( TYPE_2 VAR_1 , int index ) { do { TYPE_1 position = VAR_1 . METHOD_2 ( index ) ; if ( position . METHOD_3 ( ) ) return index ; } while ( ( index -- ) > 0 ) ; return - 1 ; }