PsiElement (@NotNull PsiElement context) { PsiElement element = null; for (PsiElement current = context; current != null && isStringLiteralPart(current, element); current = current.getParent()) { element = current; } return element; }