The highest density of nesting birds is found in habitats with clear water, which provides optimal visibility of prey.