View used files

After many hours I found the reason for "multiple definition" errors:

I had opened some library files in the IDE, and the IDE saved these files into my sketch folder, and seems to have added the copies also to the sketch. Closing the tabs didn't remove the files, neither from the sketch nor from the directory.

What's the recommended procedure for updating a (private) library?

Use another editor.