Class SameBranchCheck