The actor-playwright Hamish Linklater, born in Great Barrington, an upscale rural community of the Berkshire hills of western Massachusetts, uses the bucolic area as the setting for The Whirligig, his new play. It’s a region with plenty of past literary associations. Edith Wharton has a crucial scene in Ethan Frome take place in Lenox, where she lived; Nathaniel Hawthorne wrote Tanglewood Tales while dwelling in the same town; and Herman Melville turned out Moby-Dick at his home in Pittsfield, the county seat. Much more recently, Lucy Thurber set her Hilltown Plays in the nearby area.