protected function buildInlineCodeOfEvent(AbstractEvent $event) {
        if ($event->getInline()) {
            $code = $event->getCode() . PHP_EOL;
        } else {
            $code = $this->buildHandlerFunctionCall($event);
        }
        $condition = $this->buildCondition($event);
        if (empty($condition)) {
            $result = $code;
        } else {
            $result = '                    if (' . $condition . ') {' . PHP_EOL
                    . $code
                    . '                    }' . PHP_EOL;
        }
        return $result;
    }