Inheritors search for UAST
Hello, when I use
InheritanceUtil.isInheritor(uClass, true, someClassFqn)
Idea highlights the uClass with the message `Usage of UElement as PsiElement is not recommended`. But when I use supposed
uClass.getAsJavaPsiElement(PsiClass::class.java)
it also is highlighted as unstable.
Could you say, what is the recommended way? I want to reuse some logic for kotlin and java.
Please sign in to leave a comment.
Hello! the recommend way to use `UClass` as a `PsiClass` is to call the `javaPsi` method of the `UClass`.
> it also is highlighted as unstable.
Hm, it is strange, it should be marked. Can you share the screenshot or even report a bug?
Thank you!