DirectoryEntryConsumer (@NotNull final SvnBranchConfigurationNew result, @NotNull final Url rootPath) { return entry -> { if (entry.isDirectory()) { Url childUrl = append(rootPath, entry.getName()); if (StringUtil.endsWithIgnoreCase(entry.getName(), TRUNK_NAME)) { result.setTrunk(childUrl); } else { result.addBranches(childUrl, new InfoStorage<>(new ArrayList<>(0), InfoReliability.defaultValues)); } } }; }