Add visitTry method