PsiElement (@NotNull PsiElement element, @NotNull TokenSet tokenSet) { PsiElement run = element; while (run != null && !tokenSet.contains(PsiUtilCore.getElementType(run))) { run = run.getParent(); } return run; }