private static Set<String> getNonUniqueReferencesFromCache(PsiJavaFile file) {
    return CachedValuesManager.getCachedValue(file, () -> {
      ReferenceCollector referenceCollector = new ReferenceCollector();
      file.accept(referenceCollector);
      return CachedValueProvider.Result.create(referenceCollector.getNonUniqueReferences(), PsiModificationTracker.MODIFICATION_COUNT);
    });
  }
private static Set<String> getNonUniqueReferencesFromCache(PsiJavaFile file)