Use isAssignableFrom via Collections

Hello,

I have custom inspection which checks types. It works fine except one case -- checking of Collections
Problem is in
someType.isAssignableFrom(someOtherType)
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)?

Please sign in to leave a comment.