String (@NotNull Repository repository) { String name = DvcsUtil.getShortRepositoryName(repository); int slash = name.lastIndexOf(File.separatorChar); if (slash < 0) { return name; } String candidate = name.substring(slash + 1); return !containedInOtherNames(repository, candidate) ? candidate : name; }