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