A user might move files in the file directory without JabRef.
Then, JabRef does not find the file:

But it still exists.
Example:
- Open `test-support\src\manual-tests\issue-9798\issue-9798.bib in JabRef
- Double click on the only entry to open the entry editor
- Select tab "General"
- See orange behind "minimal.pdf"

Normally org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#findAssociatedNotLinkedFiles is called (from org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#bindToEntry)
Task:
- Write test in org.jabref.gui.externalfiles.AutoSetFileLinksUtilTest for this case
- Adapt
org.jabref.gui.externalfiles.AutoSetFileLinksUtil to cover the case searching for the filename (in addition to citation key logic).
- Ensure that new logic ignores already linked files (e.g., if "minimal.pdf" is already attached to another entry)
- Add test org.jabref.gui.externalfiles.AutoSetFileLinksUtilTest (if not already covered by 1)
- Test in JabRef GUI
One has to ensure that "automatically search and show unlinked files" is activated

A user might move files in the file directory without JabRef.
Then, JabRef does not find the file:
But it still exists.
Example:
Normally
org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#findAssociatedNotLinkedFilesis called (from org.jabref.gui.fieldeditors.LinkedFilesEditorViewModel#bindToEntry)Task:
org.jabref.gui.externalfiles.AutoSetFileLinksUtilto cover the case searching for the filename (in addition to citation key logic).One has to ensure that "automatically search and show unlinked files" is activated