/**
  * Reset the configured type filters.
  *
  * @param useDefaultFilters whether to re-register the default filters for the {@link
  *     Component @Component}, {@link Repository @Repository}, {@link Service @Service}, and {@link
  *     Controller @Controller} stereotype annotations
  * @see #registerDefaultFilters()
  */
 public void resetFilters(boolean useDefaultFilters) {
   this.includeFilters.clear();
   this.excludeFilters.clear();
   if (useDefaultFilters) {
     registerDefaultFilters();
   }
 }
 /**
  * Create a ClassPathScanningCandidateComponentProvider with the given {@link Environment}.
  *
  * @param useDefaultFilters whether to register the default filters for the {@link
  *     Component @Component}, {@link Repository @Repository}, {@link Service @Service}, and {@link
  *     Controller @Controller} stereotype annotations
  * @param environment the Environment to use
  * @see #registerDefaultFilters()
  */
 public ClassPathScanningCandidateComponentProvider(
     boolean useDefaultFilters, Environment environment) {
   if (useDefaultFilters) {
     registerDefaultFilters();
   }
   this.environment = environment;
 }