boolean (@NotNull Element element) { return "expression-string".equals(element.getName()) && (element.getParent() instanceof Element parent) && EXPRESSION_TAG.equals(parent.getName()) && (parent.getParent() instanceof Element grandParent) && EXPRESSIONS_TAG.equals(grandParent.getName()); }