private static Set<String> allCollectorNames(@NotNull Project project) {
    return CachedValuesManager.getManager(project).getCachedValue(project, () -> {
      Set<String> result = new HashSet<>();
      GlobalSearchScope scope = GlobalSearchScope.allScope(project);
      if (!DumbService.isDumb(project)) {
        for (PsiClass collector : JavaPsiFacade.getInstance(project).findClasses(GROOVY_TRANSFORM_ANNOTATION_COLLECTOR, scope)) {
          AnnotatedElementsSearch.searchPsiClasses(collector, scope).forEach(aClass -> {
            ContainerUtil.addIfNotNull(result, aClass.getName());
            return true;
          });
        }
      }
      return CachedValueProvider.Result.create(result, PsiModificationTracker.MODIFICATION_COUNT);
    });
  }
private static Set<String> allCollectorNames(@NotNull Project project)