When Mindy Kaling took the stage at the Democratic National Convention, she could not resist delivering a special message to Ben Affleck . Kaling, 45, addressed the delegation of her home state of Massachusetts at the DNC in Chicago on Wednesday, August 21, a day after Affleck’s estranged wife, Jennifer Lopez , filed for divorce after two years of marriage. “I love you, Massachusetts!” the actress and producer said, drawing wild applause.

“Everyone is always hating on us. But they just don’t get it. Go Sox! .

.. Ben Affleck, hang in there! Dunkin Donuts, you’re the best coffee in the world.

” Kaling and Affleck, 52, have a long history — kind of. Earlier in her career, Kaling portrayed the Oscar winner in a hit off-Broadway play called Matt and Ben , which she co-wrote with her college pal, Brenda Withers . The 2002 production was a fictional retelling of how Affleck and Matt Damon wrote the script for Good Will Hunting .

(The collaborators went on to win the Academy Award for Best Original Screenplay in 1998.) The shoutout from Kaling comes just one day after Lopez, 55, submitted divorce paperwork herself , instead of through a lawyer, at a court in Los Angeles on Tuesday, August 20. She listed the date of her separation from Affleck as April 26, which was three months before they marked their two-year wedding anniversary.

News of the couple’s divorce comes after months of reports that their marriage was on the rocks. The duo went weeks without being spotted .