public function startScan()
    {
        //First we get all the files we need form the directories
        $this->scanPaths();
        //Then we get the the annotations from the corresponding namespace and class name
        $annotations = $this->scanFileListForAnnotations();

        //Converting to collections
        $annotations = collect($annotations)->mapWithKeys(
            function ($annotations, $className) {
                return [$className => $annotations];
            }
        );
        $this->setAnnotations($annotations);
    }