@Override
      public @NotNull Set<Integer> convertToNodeIds(@NotNull Collection<? extends CommitId> commitIds) {
        Set<Integer> result = new HashSet<>();
        for (int id = 0; id < myLinearGraph.nodesCount(); id++) {
          if (commitIds.contains(myFunction.apply(id))) {
            result.add(id);
          }
        }
        return result;
      }
@Override
      public @NotNull Set<Integer> convertToNodeIds(@NotNull Collection<? extends CommitId> commitIds)