Plans to build Australia's largest coal mine in central Queensland would wipe out the habitat of the world's most significant population of an endangered finch, a court has heard.