Considering following example:
foreach($this->categories as $category){
$category->getName();
}
IDE do not have type for $category and do not offer autocomplete as expected. On the other hand, it does not complain about calling getName method on it but I would like to get notification about that. I have not managed to find option for this in inspection settings.