public static int METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_2 . METHOD_2 ( VAR_1 ) ) { return VAR_2 . get ( VAR_1 ) ; } int index = 0 ; while ( ( VAR_1 . METHOD_3 ( ) ) != null ) { VAR_1 = VAR_1 . METHOD_3 ( ) ; if ( VAR_1 instanceof TYPE_2 ) { index += 1 ; } } VAR_2 . put ( VAR_1 , index ) ; return index ; }

public static int METHOD_1 ( TYPE_1 VAR_1 ) { if ( VAR_2 . METHOD_2 ( VAR_1 ) ) { return VAR_2 . get ( VAR_1 ) ; } int index = 0 ; TYPE_1 node = VAR_1 ; while ( ( node . METHOD_3 ( ) ) != null ) { node = node . METHOD_3 ( ) ; if ( node instanceof TYPE_2 ) { index += 1 ; } } VAR_2 . put ( VAR_1 , index ) ; return index ; }
