@NotNull
    private Pair<LogEntry, LogEntryPath> getCopyPoint() throws VcsException {
      HistoryClient client = myVcs.getFactory(myTarget).createHistoryClient();
      Ref<LogEntry> entry = Ref.create();

      client.doLog(myTarget, Revision.of(1), myTarget.getPegRevision(), true, true, false, 1, null, entry::set);

      if (entry.isNull()) {
        throw new VcsException(message("error.no.branch.point.found.for.target", myTarget));
      }

      LogEntryPath path = entry.get().getChangedPaths().get(relativePath());

      if (path == null) {
        throw new VcsException(message("error.target.not.found.in.paths", myTarget, entry.get().getChangedPaths()));
      }

      return Pair.create(entry.get(), path);
    }
@NotNull
    private Pair<LogEntry, LogEntryPath> getCopyPoint()