discoverPsr4 scans the whole directory every time it is called. We should make use of the caching provider if available and save those.