Inspiration can come from literally everywhere–just listen to Avengers: Infinity War screenwriters Christopher Markus and Stephen McFeely. You’d think that when writing a sprawling superhero epic with a cast of dozens and dozens that they’d be looking to previous feature film epics or space operas or, you know, the 18 previous Marvel movies. They probably did look to all of those, but they also drew inspiration from one super unlikely source: Frasier.

Yep, the lauded Must See TV sitcom played a major role on one of the main relationships in Infinity War–and you can totally see it once you hear what Markus and McFeely were thinking. While talking to Yahoo, the writing duo revealed just how much of an influence the Crane boys were on two similarly pompous superheroes.

“Frasier was influential in our decision to put Stark and Strange together,” McFeely said. It’s not really a spoiler to say that Robert Downey Jr. and Benedict Cumberbatch spend a lot of time together in the film, a move that may have surprised some viewers considering that Stephen Strange’s superhero origin (arrogant dude learns how to be humble) is strikingly similar to Tony Stark’s.

To explain, McFeely first analyzed the thought that went into rounding out Frasier’s cast when the character was spun-off from Cheers. “So you’re going to do a spinoff with this character, and you’re going to give him a family, you’re going to give him a brother,” said McFeely. “Most people would say, let’s give him a blue collar brother and so we’re gonna get the opposite. But they didn’t do that. They give him a brother who is–”

“–Even more like Frasier than Frasier,” Markus interjected. “And it gives Frasier the opportunity to go, ‘Wow, I must be really annoying, because he’s really annoying.'”

That right there is what the writing duo wanted to do with these two heroes. “To take Tony and Dr. Strange, who are quite similar — they both have goatees, they’re both arrogant — the impulse might be, ‘Well, let’s keep them separate because they occupy the same space, and everyone will get their own Arrogant Goatee Man. But to put them together, one, is funny, and their powers are totally different. But also it helps Tony go, ‘Wow, arrogant people are really annoying … I’m arrogant, huh.’ This is how we become better people in life.”

Wow, right? Makes you wonder which other Frasier characters could inspire other Marvel heroes in the next Avengers movie. Could Daphne and Martin inspire Scarlet Witch and Hawkeye’s dynamic? Isn’t Roz a total Black Widow? And by the way–is Iron Man the Frasier or the Niles? If this spoilery meme is to be believed, and having seen Infinity War, I can say that Frasier is the Doctor Strange.

Where to stream Frasier