Both statements are correct. Fig wasps and fig trees have a highly specialized mutualistic relationship. Female fig wasps enter the fig inflorescence (which develops into the fig fruit) to lay eggs. In the process, they pollinate the fig flowers. Some wasps become trapped and die inside, becoming part of the fruit. While technically the fig might contain remnants of insects, it's generally not considered truly "non-vegetarian" in the dietary sense.