PermanentLinearGraphImpl (@NotNull NotNullFunction<? super CommitId, Integer> notLoadedCommitToId) { for (int nodeIndex = 0; nodeIndex < myNodesCount; nodeIndex++) { doStep(nodeIndex); } fixUnderdoneEdges(notLoadedCommitToId); return new PermanentLinearGraphImpl(mySimpleNodes, myNodeToEdgeIndex, myLongEdges); }