This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See In this particular case, I think that the jquery.js.jsf is actually coming from a static resource template found within the PrimeFaces jar, but I'm not 100% certain. PrimeFaces could have created and cached a custom resource based on the client's characteristics (browser brand and version, for example).
As to the "something smarter", note that the URL ends in .jsf. So the FacesServlet is responsible for dispatching the URL to the appropriate rendering service. Definitely NOT a purely static resource reference ("link").
An IDE is no substitute for an Intelligent Developer.