Displaying the names

Good day.
Can you please tell me how to implement a blueprint system for displaying the names of items on the screen, preventing them from overlapping? Display example below. Thank you in advance for your help.

https://cdn.discordapp.com/attachments/632512853768929301/826587635723796520/123.jpg

Please, help.