Fix annotations reported multiple times

When a class loader lists the same element twice in its class path, or one of its parent class loaders does, `ClassLoader#getResources()` will report matching files multiple times, too.

This change works around that behavior by keeping track what class path elements we already looked at and skipping them when encountering them again.