private static Set<VirtualFile> eternallyLivingFiles() { if (ourEternallyLivingFilesCache != null) { return ourEternallyLivingFilesCache; } Set<VirtualFile> survivors = new HashSet<VirtualFile>(); for (IndexedRootsProvider provider : IndexedRootsProvider.EP_NAME.getExtensions()) { for (VirtualFile file : IndexableSetContributor.getRootsToIndex(provider)) { registerSurvivor(survivors, file); } } ourEternallyLivingFilesCache = survivors; return survivors; }
private static Set<VirtualFile> eternallyLivingFiles() { if (ourEternallyLivingFilesCache != null) { return ourEternallyLivingFilesCache; } Set<VirtualFile> survivors = new HashSet<VirtualFile>(); for (IndexableSetContributor provider : IndexableSetContributor.EP_NAME.getExtensions()) { for (VirtualFile file : provider.getAdditionalRootsToIndex()) { registerSurvivor(survivors, file); } } ourEternallyLivingFilesCache = survivors; return survivors; }