class FindFirstStageFactory implements TerminalStageFactory<Stage.FindFirst> {

    @SuppressWarnings("unchecked")
    @Override
    public <I, O> TerminalStage<I, O> create(Engine engine, Stage.FindFirst stage) {
        Objects.requireNonNull(stage); // Not really useful here as it conveys no parameters, so just here for symmetry
        return (TerminalStage<I, O>) INSTANCE;
    }

}