protected function invokeEngineEvent($method)
    {
        $project = $this->getProjectInstance();
        if ($project instanceof EngineEventInterface) {
            call_user_func_array([$project, $method], []);
        }

        $platform = $this->getPlatformInstance();
        if ($platform instanceof EngineEventInterface) {
            call_user_func_array([$platform, $method], []);
        }
    }