aleksandrsl
09/13/2017, 1:51 PMis
just looks prettier
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