public void METHOD_1 ( TYPE_1 VAR_1 , int position ) { if ( VAR_1 instanceof TYPE_2 ) { TYPE_2 VAR_2 = ( ( TYPE_2 ) ( VAR_1 ) ) ; VAR_2 . METHOD_2 ( ) ; } else if ( VAR_1 instanceof TYPE_3 ) { TYPE_3 VAR_3 = ( ( TYPE_3 ) ( VAR_1 ) ) ; VAR_3 . METHOD_2 ( list . get ( position ) , position ) ; } }

public void METHOD_1 ( TYPE_1 VAR_1 , int position ) { if ( VAR_1 instanceof TYPE_2 ) { TYPE_2 VAR_2 = ( ( TYPE_2 ) ( VAR_1 ) ) ; VAR_2 . METHOD_2 ( ) ; } else if ( VAR_1 instanceof TYPE_3 ) { TYPE_3 VAR_3 = ( ( TYPE_3 ) ( VAR_1 ) ) ; if ( ( list . size ( ) ) > 0 ) { VAR_3 . METHOD_2 ( list . get ( position ) , position ) ; } } }
