SimpleCommit<Integer> (@NotNull String commitHash, String @NotNull [] parentsHashes) { int intCommitHash = CommitParser.createHash(commitHash); List<Integer> parents = new ArrayList<>(); for (String parentsHash : parentsHashes) { if (parentsHash.length() > 0) { parents.add(CommitParser.createHash(parentsHash)); } } return new SimpleCommit<>(intCommitHash, parents, intCommitHash); }