void () { BekBranch selectBranch = myBekBranches.get(0); for (BekBranch bekBranch : myBekBranches) { if (getBranchLastPartTimestamp(selectBranch) > getBranchLastPartTimestamp(bekBranch)) { selectBranch = bekBranch; } } List<Integer> prepareForInsertPart = selectBranch.getPrepareForInsertPart(); assert prepareForInsertPart != null; for (int insertedNode : prepareForInsertPart) { myEdgeRestrictions.removeRestriction(insertedNode); } myInverseResultList.addAll(ContainerUtil.reverse(prepareForInsertPart)); selectBranch.doneInsertPreparedPart(); }