class ParametersFactory {

    public static Parameters selectSensorSensitivity(@NonNull Capabilities capabilities,
                                                     @NonNull SelectorFunction<Range<Integer>, Integer> selector) {
        return new Parameters().putValue(
                Parameters.Type.SENSOR_SENSITIVITY,
                selector.select(
                        capabilities.supportedSensorSensitivityRange()
                )
        );
    }

}