public void METHOD_1 ( TYPE_1 VAR_1 , int position ) { for ( TYPE_2 VAR_2 : METHOD_2 ( ) ) { int size = VAR_2 . METHOD_3 ( ) ; if ( position < size ) { VAR_2 . METHOD_1 ( VAR_1 , position ) ; break ; } position -= size ; } }

public void METHOD_1 ( TYPE_1 VAR_1 , int position ) { for ( int i = 0 ; i < ( METHOD_2 ( ) . size ( ) ) ; i ++ ) { TYPE_2 VAR_2 = METHOD_2 ( ) . get ( i ) ; int size = VAR_2 . METHOD_3 ( ) ; if ( position < size ) { VAR_2 . METHOD_1 ( VAR_1 , position ) ; break ; } position -= size ; } }
