Url (@NotNull SvnVcs vcs, @NotNull WorkingCopyInfo info, @NotNull Url targetBranchUrl) { Info svnInfo = vcs.getInfo(info.getLocalPath()); Url url = svnInfo != null ? svnInfo.getUrl() : null; return url != null && isAncestor(targetBranchUrl, url) ? url : null; }