private static @Nullable @Nls String getPresentableRootName(@NotNull GitLineHandler handler) {
    if (GitHandler.shouldSuppressReadLocks()) return null;
    if (handler.getCommand().equals(GitCommand.VERSION)) return null;

    VirtualFile root = handler.getExecutableContext().getRoot();
    if (root == null) return null;

    Project project = handler.project();
    if (project == null) return root.getName();

    ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project);
    VirtualFile vcsRoot = vcsManager.getVcsRootFor(root);
    if (root.equals(vcsRoot)) {
      if (vcsManager.getRootsUnderVcs(GitVcs.getInstance(project)).length == 1) {
        return null;
      }
      return ProjectLevelVcsManager.getInstance(project).getShortNameForVcsRoot(root);
    }

    return root.getName();
  }
private static @Nullable @Nls String getPresentableRootName(@NotNull GitLineHandler handler)