11 files declare their use of DiscoveryTrait

AnnotatedClassDiscovery.php in core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php
AnnotationBridgeDecorator.php in core/lib/Drupal/Component/Annotation/Plugin/Discovery/AnnotationBridgeDecorator.php
ConfigSchemaDiscovery.php in core/lib/Drupal/Core/Config/Schema/ConfigSchemaDiscovery.php
DiscoveryTraitTest.php in core/tests/Drupal/Tests/Component/Plugin/Discovery/DiscoveryTraitTest.php
HelpTopicDiscovery.php in core/modules/help/src/HelpTopicDiscovery.php
HookDiscovery.php in core/lib/Drupal/Core/Plugin/Discovery/HookDiscovery.php
InfoHookDecorator.php in core/lib/Drupal/Core/Plugin/Discovery/InfoHookDecorator.php
NoSourcePluginDecorator.php in core/modules/migrate/src/Plugin/NoSourcePluginDecorator.php
PluginManagerBase.php in core/lib/Drupal/Component/Plugin/PluginManagerBase.php
ProviderFilterDecorator.php in core/modules/migrate/src/Plugin/Discovery/ProviderFilterDecorator.php
YamlDiscovery.php in core/lib/Drupal/Core/Plugin/Discovery/YamlDiscovery.php

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.