docs: Object getParameterAtIndex(int partitionIndex) {
          try {
              if (serializedParams != null) {
                  return ParameterSet.getParameterAtIndex(partitionIndex, serializedParams.duplicate());
              } else {
                  return params.get().getParam(partitionIndex);
              }
          }
          catch (Exception ex) {
              throw new RuntimeException("Invalid partitionIndex: " + partitionIndex, ex);
          }
      }