The McCarthyite formula is simple: Claim you are defending high-minded principles (Democracy! The rule of law! Civil discourse!) to justify efforts to delegitimize someone you’ve identified as a political opponent.
Democrats denied Trump’s presidency from day one; Hillary Clinton and Joe Biden themselves declared for years that he had stolen the 2016 election. In the name of election integrity, Democrats turned a bogus conspiracy theory cooked up by Clinton’s campaign about Russian collusion into years of official investigations that undermined and tainted Trump.