Question: The Simpsons episode "The Debarted" is a parody of a film directed by who?

Context paragraphs:
The Departed: The Departed is a 2006 American crime drama film directed by Martin Scorsese and written by William Monahan.  It is a remake of the 2002 Hong Kong film "Infernal Affairs".  The film stars Leonardo DiCaprio, Matt Damon, Jack Nicholson, and Mark Wahlberg, with Martin Sheen, Ray Winstone, Vera Farmiga, Anthony Anderson and Alec Baldwin in supporting roles.

Simpsoncalifragilisticexpiala(Annoyed Grunt)cious: "Simpsoncalifragilisticexpiala(Annoyed Grunt)cious" is the thirteenth episode of "The Simpsons"<nowiki>'</nowiki> eighth season.  It originally aired on the Fox network in the United States on February 7, 1997.  When Marge becomes stressed, the Simpsons hire a nanny, a Mary Poppins parody, Shary Bobbins (voiced by Maggie Roswell).  The episode was directed by Chuck Sheetz and written and executive produced by Al Jean and Mike Reiss.  It was the last episode for which Reiss received a writing credit.  In 2014, Jean selected it as one of five essential episodes in the show's history.

Treehouse of Horror XXII: "Treehouse of Horror XXII" is the third episode of the twenty-third season and the twenty-second Halloween episode of the American animated sitcom "The Simpsons".  It originally aired on the Fox network in the United States on October 30, 2011.  The episode is part of the "Treehouse of Horror" series, which is an episode divided into three separate stories and an opening that is a parody of scary or Halloween themed stories.  This episode's stories were primarily spoofs of the French film "The Diving Bell and the Butterfly", the television series "Dexter", and the American film "Avatar".  The opening was a parody of the autobiographical film "127 Hours", in which the subject Aron Ralston loses an arm.

The Debarted: "The Debarted" is the thirteenth episode of "The Simpsons"<nowiki>'</nowiki> nineteenth season.  It first aired on the Fox network in the United States on March 2, 2008, and features Topher Grace as guest star and a cameo by radio host Terry Gross.  A new troublesome student named Donny arrives at Springfield Elementary School, prompting a gleeful Bart to befriend him as his partner in pranks.  Meanwhile, Marge wrecks the family car, and Homer gets a new luxury vehicle as a loaner car, which he grows attached to.  The episode is a parody of the 2006 film "The Departed".

Bart of Darkness: "Bart of Darkness" is the first episode of "The Simpsons"<nowiki>'</nowiki> sixth season.  It originally aired on the Fox network in the United States on September 4, 1994.  It was written by Dan McGrath, and directed by Jim Reardon.  In the episode, Bart breaks his leg and becomes increasingly isolated in his room.  He starts spying on neighbors with a telescope and begins to suspect that Ned Flanders has murdered his wife.  The episode was produced during the 1994 Northridge earthquake, which delayed production by a month, and is largely a parody of the film "Rear Window".

22 Short Films About Springfield: "22 Short Films About Springfield" is the twenty-first episode of "The Simpsons"<nowiki>'</nowiki> seventh season.  It originally aired on the Fox network in the United States on April 14, 1996.  It was written by Richard Appel, David S. Cohen, Jonathan Collier, Jennifer Crittenden, Greg Daniels, Brent Forrester, Dan Greaney, Rachel Pulido, Steve Tompkins, Josh Weinstein, Bill Oakley, and Matt Groening, with the writing being supervised by Daniels.  The episode was directed by Jim Reardon.  Phil Hartman guest starred as Lionel Hutz and the hospital board chairman.  The episode looks into the lives of other Springfield residents in a series of linked stories and originated from the end segment of the season four episode "The Front".  The episode is a loose parody of "Pulp Fiction", which gave the staff the idea of a possible spin-off from "The Simpsons".  The title is a reference to the film "Thirty Two Short Films About Glenn Gould".  The episode received positive reviews from critics.

A Star Is Born Again: "A Star Is Born Again" is the 13th episode from "The Simpsons"<nowiki>'</nowiki> fourteenth season.  It first aired on the Fox network in the United States on March 2, 2003.  The episode owes much of its plot to "Notting Hill" (1999).  While that film is about an actress (Julia Roberts) finding happiness with the owner of an independent bookstore, the Simpsons episode features Hollywood movie star Sara Sloane (Marisa Tomei) falling for Ned Flanders after visiting the Leftorium.

Treehouse of Horror VI: "Treehouse of Horror VI" is the sixth episode of "The Simpsons"<nowiki>'</nowiki> seventh season and the sixth episode in the "Treehouse of Horror" series.  It first aired on the Fox network in the United States on October 29, 1995, and contains three self-contained segments.  In "Attack of the 50 Foot Eyesores", an ionic storm brings Springfield's oversized advertisements and billboards to life and they begin attacking the town.  The second segment, "Nightmare on Evergreen Terrace", is a parody of the "A Nightmare on Elm Street" film series, in which Groundskeeper Willie (resembling Freddy Krueger) attacks schoolchildren in their sleep.  In the third and final segment, "Homer", Homer finds himself trapped in a three dimensional world.  It was inspired by "The Twilight Zone" episode "Little Girl Lost".  The segments were written by John Swartzwelder, Steve Tompkins, and David S. Cohen respectively.

Treehouse of Horror XIX: "Treehouse of Horror XIX" is the fourth episode of the twentieth season of "The Simpsons".  It first aired on the Fox network in the United States on November 2, 2008.  This is the nineteenth "Treehouse of Horror" episode, and, like the other "Treehouse of Horror" episodes, contains three self-contained segments: in "Untitled Robot Parody", Transformer robots run amok in Springfield; in "How to Get Ahead in Dead-Vertising", Homer is hired by ad agents to kill celebrities so their images can be used for free; and in a "Simpsons"-style parody of "It's the Great Pumpkin, Charlie Brown" (called "It's The Grand Pumpkin, Milhouse"), Milhouse summons a demon pumpkin who goes berserk when it sees humans carving its brethren into jack-o-lanterns as part of Halloween tradition.  It was written by Matt Warburton and directed by Bob Anderson.

Don't Fear the Roofer: "Don't Fear the Roofer" is the sixteenth episode of the sixteenth season of "The Simpsons".  It first aired on the Fox network in the United States on May 1, 2005, and guest-stars comedian Ray Romano.  The episode is a parody of the 2001 film "A Beautiful Mind".  The episode received negative reviews from critics, but praise for Romano's performance.

Supporting paragraphs: The Debarted The Departed
Answer: Martin Scorsese