Issue #3342817 by Wim Leers, phenaproxima, tedbow: Decide which classes should be internal and/or final — delete ExcludedPathsTrait, make CollectPathsToExcludeEvent richer