in src/main/kotlin/com/pestphp/pest/types/ThisTypeProvider.kt [28:37]
override fun getType(psiElement: PsiElement): PhpType? {
if (DumbService.isDumb(psiElement.project)) return null
if (
((psiElement as? FunctionReferenceImpl)?.isAnyPestFunction() != true) &&
!psiElement.isThisVariableInPest { it.isAnyPestFunction() }
) return null
return getPestType(psiElement)
}