IntSet (@NotNull Collection<? extends FilePath> paths) { return executeAndCatch(() -> { IntSet result = new IntOpenHashSet(); for (FilePath path : paths) { result.addAll(createFileHistoryData(path).build().getCommits()); ProgressManager.checkCanceled(); } return result; }, new IntOpenHashSet()); }