private void calculateBranchPathByBranch(@Nullable Url url, @Nullable String localPath) {
    final String local = url == null ? null : getLocal(url, localPath == null ? myBranchToLocal.get(url) : localPath);
    if (local == null) {
      myLocalArea.setForeground(JBColor.RED);
      myLocalArea.setText(message("label.select.target.working.copy"));
    } else {
      myLocalArea.setForeground(NamedColorUtil.getInactiveTextColor());
      myLocalArea.setText(local);
      myBranchToLocal.put(url, local);
    }
  }
private void calculateBranchPathByBranch(@Nullable Url url, @Nullable String localPath)