Moved the optimization and scheduling of the codeAnalysis restart for event PsiClasses in to the callback so they will happen once the async scan is done