The inspiration is there, but very loosely: aside from the title, the general comedy of manners theme, the number of people (gasp!) being in disguise and the ridiculous social conventions in play have some thematic relevance. But there's little direct influence in plot, characters, or setting.