getParentOfTypes2¶ inline fun <reified T : PsiElement, reified V : PsiElement> PsiElement.getParentOfTypes2(): PsiElement? Returns the nearest strict ancestor that is a T or V, or null if there is none. jvm