PsiElement (@NotNull PsiElement host, @NotNull TextRange valueRange) { return notNull( PsiTreeUtil.findFirstParent( host.getContainingFile().findElementAt(valueRange.getStartOffset()), false, parent -> parent == host || parent.getTextRange().contains(valueRange)), host); }