Match existing file extension in a folder -> Move folder

Hi there,
is it possible to match a File in a Folder for its Extension and then to move (if there is a file with this specific extension) the whole folder to another location? My Scenario here is to clean up the Downloads folder by searching for .xcodeproj Files and sort the example projects in a specific Folder.
Thanks in advance!
is it possible to match a File in a Folder for its Extension and then to move (if there is a file with this specific extension) the whole folder to another location? My Scenario here is to clean up the Downloads folder by searching for .xcodeproj Files and sort the example projects in a specific Folder.
Thanks in advance!