void (@NotNull ProjectDumbIndexingHistoryImpl projectDumbIndexingHistory, @NotNull ProgressIndicator progressIndicator, IndexUpdateRunner indexUpdateRunner, List<IndexUpdateRunner.FileSet> fileSets) { IndexUpdateRunner.IndexingInterruptedException exception = null; try { indexUpdateRunner.indexFiles(myProject, fileSets, progressIndicator, projectDumbIndexingHistory); } catch (IndexUpdateRunner.IndexingInterruptedException e) { exception = e; } try { fileSets.forEach(b -> { projectDumbIndexingHistory.addProviderStatistics(b.statistics); }); } catch (Exception e) { LOG.error("Failed to add indexing statistics", e); } if (exception != null) { ExceptionUtil.rethrow(exception.getCause()); } }