Moving folders that have contents that match a rule?

For fear I'm overthinking this again, is there a de facto method for moving folders that have contents that match a criteria?
An example would be a folder that was created by unzipping an application. The folder might contain an application, documents, a `src` folder, etc. If such a folder, for example, contains an Application kind or .app extension, I would want the entire folder moved into another folder called "macos".
How would you go about doing this yourself?
An example would be a folder that was created by unzipping an application. The folder might contain an application, documents, a `src` folder, etc. If such a folder, for example, contains an Application kind or .app extension, I would want the entire folder moved into another folder called "macos".
How would you go about doing this yourself?