protected function methodHasStaticCall(
        MethodDefinition $methodDefinition,
        ClassName $expectedFacadeClassName
    ) {
        $this->typeCheck->methodHasStaticCall(func_get_args());

        $hasCall = false;
        $expectedMethodName = $this->normalizeValidatorMethodName(
            $methodDefinition->name()
        );
        $callPattern = sprintf(
            '/^\s*%s\s*::\s*get\s*\(\s*__CLASS__\s*\)\s*->\s*%s\s*\(\s*\\\\?func_get_args\s*\(\s*\)\s*\)\s*;$/',
            preg_quote($expectedFacadeClassName->string(), '/'),
            preg_quote($expectedMethodName, '/')
        );

        $firstStatement = $this->parseFirstMethodStatement($methodDefinition->source());
        if (preg_match($callPattern, $firstStatement)) {
            $hasCall = true;
        }

        return $hasCall;
    }
protected function methodHasStaticCall(
        MethodDefinition $methodDefinition,
        ClassName $expectedFacadeClassName
    ) {
        $this->typeCheck->methodHasStaticCall(func_get_args());

        $hasCall = false;
        $expectedMethodName = $this->normalizeValidatorMethodName(
            $methodDefinition->name()
        );
        $callPattern = sprintf(
            '/^\s*%s\s*::\s*get\s*\(\s*__CLASS__\s*\)\s*->\s*%s\s*\(\s*\\\\?func_get_args\s*\(\s*\)\s*\)\s*;$/',
            preg_quote($expectedFacadeClassName->string(), '/'),
            preg_quote($expectedMethodName, '/')
        );

        $firstStatement = $this->parseFirstMethodStatement($methodDefinition->source());
        if (preg_match($callPattern, $firstStatement)) {
            $hasCall = true;
        }

        return $hasCall;
    }
@param MethodDefinition $methodDefinition
@param ClassName        $expectedFacadeClassName

@return boolean