private function isBeforeStepEventWithOutput(Event $event)
    {
        if ($event instanceof AfterStepSetup && $event->hasOutput()) {
            $this->stepSetupHadOutput = true;

            return true;
        }

        return false;
    }