isPartOf

inline fun <T : PsiElement> PsiElement.isPartOf(): Boolean

Tests if this element is part of given PsiElement.