@NotNull
  public PermanentLinearGraphImpl build(@NotNull Function<? super CommitId, @NotNull Integer> notLoadedCommitToId) {
    for (int nodeIndex = 0; nodeIndex < myNodesCount; nodeIndex++) {
      doStep(nodeIndex);
    }

    fixUnderdoneEdges(notLoadedCommitToId);

    return new PermanentLinearGraphImpl(mySimpleNodes, myNodeToEdgeIndex, myLongEdges);
  }
@NotNull
  public PermanentLinearGraphImpl build(@NotNull Function<? super CommitId, @NotNull Integer> notLoadedCommitToId)