How do I know which files are attached to a Task or project?

In a Document report, there is a filter Attached To which helps you filter documents that are attached to a project or task.