Adds
@tailrec
annotation before tail recursive methods.