1. Avoid scan when there is no project. 2. ~~Start scan when the paths changed~~ 3. Scan on a regular bases to detect new class.