Properly find end of parent method