Set<String> eventClasses;
synchronized (allEventClasses) {
eventClasses = new HashSet<String>(allEventClasses);
}
JavaPsiFacade javaPsiFacade = JavaPsiFacade.getInstance(myProject);
DaemonCodeAnalyzer codeAnalyzer = DaemonCodeAnalyzer.getInstance(myProject);
for (String eventClass : eventClasses) {
PsiClass eventPsiClass = javaPsiFacade.findClass(eventClass,
GlobalSearchScope.allScope(myProject));
if (eventPsiClass == null) continue;
PsiFile psiFile = eventPsiClass.getContainingFile();
if (psiFile == null) continue;
codeAnalyzer.restart(psiFile);
}
}
});
}