public static @NotNull List<Revision> collect(LocalHistoryFacade facade,
                                                RootEntry rootEntry,
                                                @NotNull String path,
                                                String projectId,
                                                @Nullable String pattern,
                                                boolean before) {
    List<Revision> result = new ArrayList<>();
    LocalHistoryFacadeKt.collectChanges(facade, projectId, path, pattern, changeSet -> {
      result.add(new ChangeRevision(facade, rootEntry, path, changeSet, before));
      return Unit.INSTANCE;
    });
    return result;
  }
public static @NotNull List<Revision> collect(LocalHistoryFacade facade,
                                                RootEntry rootEntry,
                                                @NotNull String path,
                                                String projectId,
                                                @Nullable String pattern,
                                                boolean before)