presto-main/src/main/java/io/prestosql/operator/aggregation/ReduceAggregationFunction.java/ReduceAggregationFunction/input
class ReduceAggregationFunction:    public static void input(NullableBooleanState state, Object value, boolean initialStateValue, BinaryFunctionInterface inputFunction, BinaryFunctionInterface combineFunction)
    {
        if (state.isNull()) {
            state.setNull(false);
            state.setBoolean(initialStateValue);
        }
        state.setBoolean((boolean) inputFunction.apply(state.getBoolean(), value));
    }