List<GraphCommit<Integer>> (@NotNull String input) { List<GraphCommit<Integer>> vcsCommitParents = new ArrayList<>(); for (String line : toLines(input)) { vcsCommitParents.add(CommitParser.parseCommitParentsAsInteger(line)); } return vcsCommitParents; }