I have custom inspection which checks types. It works fine except one case -- checking of Collections
Problem is in
where someType and someOtherType are both 'PsiType' (in fact PsiClassReferenceType).
Method always returns 'false' when type is Collection. So, question is how to check if one type is assignable from other for Collections (Sets in my case)?