If I have a reference to a PsiClassType instance, what is the most economic way to check whether the class behind that PsiClassType instance is of a certain type x. All I have is x as a FQ class name String.
For example, check whether the class behind the PsiClassType instance pct is of type java.util.List. I'm currently using PsiClassType.isAssignableFrom(pct) but in order to achieve this, I first have to create a PsiClassType from the FQ class name String "java.util.List". Although this works fine, I'm not sure if that's the best way to do.
Any help on this would be highly appreciated. Thanks in advance.