|
3 | 3 | import com.intellij.openapi.fileTypes.StdFileTypes;
|
4 | 4 | import com.intellij.openapi.project.Project;
|
5 | 5 | import com.intellij.openapi.util.Condition;
|
6 |
| -import com.intellij.psi.JavaPsiFacade; |
7 |
| -import com.intellij.psi.PsiAnnotation; |
8 |
| -import com.intellij.psi.PsiClass; |
9 |
| -import com.intellij.psi.PsiElement; |
10 |
| -import com.intellij.psi.PsiMethod; |
11 |
| -import com.intellij.psi.PsiMethodCallExpression; |
12 |
| -import com.intellij.psi.PsiParameter; |
13 |
| -import com.intellij.psi.PsiReference; |
14 |
| -import com.intellij.psi.PsiType; |
15 |
| -import com.intellij.psi.PsiTypeElement; |
| 6 | +import com.intellij.psi.*; |
16 | 7 | import com.intellij.psi.search.GlobalSearchScope;
|
17 | 8 | import com.intellij.psi.search.searches.MethodReferencesSearch;
|
18 | 9 | import com.intellij.psi.search.searches.ReferencesSearch;
|
|
22 | 13 |
|
23 | 14 | import java.util.Collections;
|
24 | 15 | import java.util.HashSet;
|
25 |
| -import java.util.Map; |
26 | 16 | import java.util.Set;
|
27 | 17 | import java.util.concurrent.ConcurrentHashMap;
|
28 | 18 |
|
29 | 19 | import static java.util.Arrays.asList;
|
30 | 20 |
|
31 | 21 | class DefaultEventPublisherProvider implements EventPublisherProvider {
|
32 | 22 |
|
33 |
| - private final Map<Project, Set<PsiMethod>> publisherMethodsPerProject = new ConcurrentHashMap<Project, Set<PsiMethod>>(); |
| 23 | + private final ConcurrentHashMap<Project, Set<PsiMethod>> publisherMethodsPerProject = new ConcurrentHashMap<Project, Set<PsiMethod>>(); |
34 | 24 |
|
35 | 25 | @Override
|
36 | 26 | public void scanPublishers(final Project project, GlobalSearchScope scope, final Registrar registrar) {
|
|
0 commit comments