Anton Yelchin (“Star Trek”) is co-starring with Mel Gibson and Jodie Foster in indie dark comedy “The Beaver,” with Foster directing and Anonymous Content’s Steve Golin and Keith Redmon producing.

Yelchin will portray the son of Gibson’s and Foster’s characters. Gibson’s playing a depressed man who finds solace in wearing a beaver hand-puppet; Foster will play his wife, whom the son lobbies to get a divorce.

The script, written by Kyle Killen, topped the Blacklist in December. Foster came on to the project first and brought it to Gibson, with whom she co-starred in 1994’s “Maverick.”

Jennifer Lawrence has also been cast.

Summit Entertainment picked up “The Beaver” last month and plans for a fourth quarter 2010 or early 2011 release. It will also have rights in most foreign markets.

Yelchin also appeared in “Terminator Salvation.”

He’s repped by CAA.