boolean (Expression expression) { if (expression instanceof VariableNode) { return SELECTION.equals(((VariableNode)expression).getName()); } if (expression instanceof MacroCallNode) { return ContainerUtil.exists(((MacroCallNode)expression).getParameters(), TemplateBase::containsSelection); } return false; }