code: private static boolean inMultipleBranches(List<Boolean> branches) {
      int inBranches = 0;
      for (Boolean bool : branches) {
        if (bool && ++inBranches > 1) {
          break;
        }
      }
      return inBranches > 1;
    }
docs: Check if a schema or data record is being passed to more than one branches.