When lawsuits are being examined in a single court in which the same persons take part as plaintiffs or defendants, or lawsuits that have a connection between them, the court may join them into a single trial and give a joint decision for all of them.