boolean (Object o) { if (this == o) return true; if (!(o instanceof HgTarget hgTarget)) return false; if (!myBranchName.equals(hgTarget.myBranchName)) return false; if (!myTarget.equals(hgTarget.myTarget)) return false; return true; }