Labels should not collide

See the above image Two entity are at same point and the label should not collide so for that what can we do.

I’m not sure if there is any prebuilt feature to avoid overlapping. Keeping each label’s height different would be good in my thought.