Here's an idea: Will Hunting (Good Will Hunting) and Bruce Wayne/Batman (The Dark Knight Rises) are similar than you might think. Let's take a look at a scene from each movie and get into it.
In the scene above, Will (Matt Damon) is getting som "advice" from his best friend Chuckie (Ben Affleck). Basically, Chuckie tells will that he's wasting his time working construction when he can be somewhere better. He goes so far as to say that the best part of his day is the walk from his car to Will's house, where he hopes that Will won't be home.
Much like the scene from Good Will Hunting, Bruce Wayne (Christian Bale) is getting "advice" from his butler/best buddy Alfred (Micheal Caine). And after watching the scene it becomes completely obvious that Alfred wishes the same thing for Bruce. Alfred even says he wished Bruce didn't come back to Gotham.
So you're probably wondering what the common thread is between these two characters, right? They are both too proud or stubborn to realize when they're wrong about the decisions they've been making throughout their lives. Sure, fighting crime in a spandex suit is a lot different than not living up to your full potential but bad decisions are still bad decisions.
These two scenes are extremely important because in each respective film they drive the character arcs forward. In each movie, we get some foreshadowing through the Chuckie and Alfred's dialogue. Those two characters are the only ones that have the ability to get through to the protagonist of each film and these scenes showcase that.
And other than having the same exact scene in each movie, both films end with the same exact decision from their main characters. Both Will and Bruce leave the city that has defined them.