The Office creator and his writing partner Stephen Merchant have penned an episode which makes fun of Stewart's appearances in cult sci-fi series STAR TREK as well as his more serious work on the London stage.
A set insider tells British newspaper The Sun, "In every episode, Ricky finds some way to mock his guest stars by taking the mickey out of (poking fun at) their public persona.
"Patrick will be no different. He's a serious Shakespearian actor so that's ripe for the picking. Ricky and Stephen have written a script that's got lots of references to all of Patrick's work, from Star Trek to theatre, and the X-Men films.