Collection<PsiClass> (Collection<PsiClass> annotationClasses, GlobalSearchScope scope) { if (scope == EMPTY_SCOPE) return annotationClasses; Set<PsiClass> classes = CollectionFactory.createCustomHashingStrategySet(HASHING_STRATEGY); for (PsiClass annotationClass : annotationClasses) { collectClassWithChildren(annotationClass, classes, scope); } if (classes.isEmpty()) return emptySet(); return classes; }