String (@NotNull Url url, @Nullable String localPath) { String result = null; Set<String> paths = SvnBranchMapperManager.getInstance().get(url); if (!ContainerUtil.isEmpty(paths)) { result = localPath != null ? ContainerUtil.find(paths, localPath) : ContainerUtil.getFirstItem(ContainerUtil.sorted(paths)); } return result; }