I'm using PhpStorm 10.0.1. I want to exclude files in directories that match a pattern. I want this exclusion to remove the excluded files from the set of files that PhpStorm uses when - for example - finding duplicate definitions of classes.

I've gotten part of the way through the solution, which involves Scopes:

* Open a project in PhpStorm
* Go to Settings (File -> Settings)
* Navigate to Appearance & Behavior -> Scopes
* Create a scope to exclude the appropriate file(s).
	+ Click the `+` icon
	+ Select either Local or Shared
	+ Give the scope a name
	+ Enter an appropriate pattern
		- For example, to exclude files in directories that match `*-b0*`, enter `!file:*-b0*/*`
	+ Click Exclude Recursively
	+ Verify in the tree view that the appropriate file(s) are excluded.
	+ Click OK.

This is where I'm stuck. I can't find any reference anywhere in the UI to that named scope - except in the settings dialog where I created it.

The documentation is no help:

* <https://www.jetbrains.com/phpstorm/help/scopes.html> - "Scopes" describes how to create scopes but not how to use them
* <https://www.jetbrains.com/phpstorm/help/configuring-scopes-and-file-colors.html> - "Configuring Scopes and File Colors" describes how to color files in a scope differently but not how to apply them to a project

How do I apply that scope to the current project?

(It may be the case that scopes are applied automatically. In that case, the Scopes dialog and the rest of PhpStorm disagree on what is included and what excluded and I'll need to file a bug.)