The settlement may be reached through negotiations between the parties, with the assistance of legal professionals or mediators, or it may be decided by the court if the parties cannot agree.