class UnitParameterSensitivities implements ImmutableBean, Serializable {

  public UnitParameterSensitivities split() {
    if (!sensitivities.stream().anyMatch(s -> s.getParameterSplit().isPresent())) {
      return this;
    }
    return of(sensitivities.stream()
        .flatMap(s -> s.split().stream())
        .collect(toImmutableList()));
  }

  @ImmutableConstructor private  UnitParameterSensitivities(List<? extends UnitParameterSensitivity> sensitivities);
  private  UnitParameterSensitivities(ImmutableList<UnitParameterSensitivity> sensitivities);

}