void (final SvnFileRevision revision, final SvnFileRevision revisionToAdd, final int level) { if (level < 0) { return; } if (level == 0) { revision.addMergeSource(revisionToAdd); return; } final List<SvnFileRevision> sources = revision.getMergeSources(); if (!sources.isEmpty()) { addToListByLevel(sources.get(sources.size() - 1), revisionToAdd, level - 1); } }