In my plugin i'm caching instances of PsiClass in some places, but when i use the cached instance i want to find out if the class is still available to the module.
This is easy for source types because i need to do is check if the file associated to the PsiClass is still there.
But when the PsiClass is a binary type that got returned from some library in the classpath things get more complicated.
How can i check that the PsiClass is still on the module classpath ? The user could have just removed the library from the classpath. I've tried getting this information from the PsiClass itself but all the methods i've tried still return the same result even after the library is removed from the classpath.