Emmy and Golden Globe winner DeVito also earned one Academy Award nomination. For what film?

DeVito and his friend and frequent collaborator Jack Nicholson have co-starred in movies like “One Flew Over the Cuckoo’s Nest,” “Terms of Endearment,” “Goin’ South” and “Mars Attacks!” In what movie did DeVito direct Nicholson?
