private static boolean containsSelection(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;
  }
private static boolean containsSelection(Expression expression)