private function isActionMethodAlreadyPresent(string $actionName, string $domainClassCode): bool
    {
        $functionPattern = '/public function[ \t\n\r]+' . $actionName . '[ \t\n\r]*\([ \t\r\n]*.*[ \t\r\n]*\)/';

        return preg_match($functionPattern, $domainClassCode) > 0 ? true : false;
    }