“Superbad” and “Booksmart” are totally different movies, but you might notice familiar chemistry between the lead characters thanks to the advice Jonah Hill gave his sister Beanie Feldstein.

Feldstein stars alongside Kaitlyn Dever in the critically well-received comedy “Booksmart”. The actresses and director Olivia Wilde recently told Entertainment Weekly that Hill taught Feldstein an important lesson he learned from his time with Michael Cera on “Superbad”.

RELATED: Olivia Wilde Makes Her Directorial Debut With ‘Booksmart’

“We were talking about ‘Superbad’ being such a great example of true friendship,” Wilde told the publication. “Beanie shared that Jonah said that he and Michael had spent just tons of time together [during ‘Superbad’].”

“I remember you said that Jonah gave you that advice before you started — to spend as much time as you can with me,” Denver told Feldstein. “We knew that it was essential for these girls because that’s what this movie lives on, their chemistry.”

That advice compelled the two co-stars to move in together during production. “The crazy thing is,” Wilde pointed out. “Like Jonah and Michael, anytime you guys hang out together in public for the rest of your lives, people are going to freak out.”

RELATED: Jonah Hill No Longer Wants To Be Known As The ‘Bro Comedy Guy’

“After ‘Superbad’, Michael and Jonah had to meet up at, like, 3 in the morning and takes walks because they couldn’t be seen together,” Feldstein revealed. “They were like ‘The Bachelor’.”

“Booksmart” busts into theatres on May 24.