This selector is very general - it could find some dropdown on the screen that wasn't associated with the file picker. Can we be more specific here? 

Also, it would be best to add a specific API to FileFilters that just tells you whether its picker or dialog is open, and encapsulate the knowledge of how to determine that within FileFilters itself, rather than having FindInFiles know the details of how it's implemented.