Nothing is wrong) `is` just looks prettier ``` inl...
# announcements
a
Nothing is wrong)
is
just looks prettier
Copy code
inline fun <reified T : PsiElement> PsiElement.hasParent(): Boolean {
    return if ((this.parent is T) || this.parent is PsiFile) {
I've found this to work, but this way function cannot be recursive