Will Ferrell and Adam McKay’s company Gary Sanchez is working with Anne Heche to develop a new NBC pilot called Bad Judge, Deadline reports. The show is based on an idea by Heche (who’s also producing) and written by Chad Kultgen (one of the writers on the upcoming Steve Carell vehicle The Incredible Burt Wonderstone). It follows a hard-living criminal judge whose freewheelin’ ways are constantly putting her professional life in danger. This is Heche’s second collaboration with Ferrell/McKay after playing an uncredited role as an evil CEO in their movie The Other Guys. Ferrell and McKay last worked with NBC years ago with their career-making jobs on SNL. Anne Heche is starring and producing Save Me, a midseason sitcom for NBC this season that has yet to be scheduled. Should Save Me not get picked up for a second season, I wouldn’t be surprised if she tried to snag this part in Bad Judge, which sounds like a pretty perfect vehicle for her. If not, Will Ferrell is always good to play a morally reprehensible female judge in a pinch.