How can I find the exact file name and location of an inspected item?

Just to add to what @pbro suggested, there was a tip on a previous (similar) topic shared by @sebastianz:

To get to know where the attributes come from, you should first use the newly added full text search of the Network panel to search for the words.

(See answer in context: Which file to modify? - #4 by sebastianz)

Basically, by searching for “YG Construction” (which is the text of the selected element on your screenshot), you might find the request which contained the same text, and this could help you understand how it was constructed.

But as @pbro said the rest of the answer can be vastly different from one website to another, and is mostly out of reach from DevTools.