@Override
  public @NotNull @NlsSafe String getShortNameForVcsRoot(@NotNull VirtualFile root) {
    String shortName = myMappings.getShortNameFor(root);
    if (shortName != null) return shortName;

    VirtualFile projectDir = myProject.getBaseDir();
    String relativePath = projectDir != null ? VfsUtilCore.getRelativePath(root, projectDir, File.separatorChar) : null;
    if (relativePath != null) {
      return relativePath.isEmpty() ? root.getName() : relativePath;
    }

    return root.getPresentableUrl();
  }
@Override
  public @NotNull @NlsSafe String getShortNameForVcsRoot(@NotNull VirtualFile root)