Ported 'PossibleMistakenCallToGetTypeIssue'.
Merge pull request #422 from TheCommieDuck/mistaken-call

Ported 'PossibleMistakenCallToGetTypeIssue'.