public int METHOD_1 ( TYPE_1 element ) { TYPE_2 . METHOD_2 ( element , STRING_1 ) ; int index = 0 ; for ( TYPE_1 t : this ) { ++ index ; if ( t . equals ( element ) ) { return index ; } } throw new TYPE_3 ( element . toString ( ) ) ; }

public int METHOD_1 ( TYPE_1 element ) { TYPE_2 . METHOD_2 ( element , STRING_1 ) ; int index = 0 ; for ( TYPE_1 t : this ) { if ( t . equals ( element ) ) { return index ; } ++ index ; } throw new TYPE_3 ( element . toString ( ) ) ; }
