public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 position ) throws TYPE_3 { if ( METHOD_2 ( VAR_1 ) . contains ( position ) ) { VAR_1 . METHOD_3 ( this . position . METHOD_4 ( ) ) . METHOD_5 ( null ) ; this . position = position ; position . METHOD_5 ( this ) ; } else { throw new TYPE_3 ( STRING_1 ) ; } }

public void METHOD_1 ( TYPE_1 VAR_1 , TYPE_2 position ) throws TYPE_3 { if ( ( METHOD_2 ( VAR_1 ) . contains ( position ) ) || ( position . equals ( this . position ) ) ) { VAR_1 . METHOD_3 ( this . position . METHOD_4 ( ) ) . METHOD_5 ( null ) ; this . position = position ; position . METHOD_5 ( this ) ; } else { throw new TYPE_3 ( STRING_1 ) ; } }
