docs: private void processEventParameter(Expression expression, NameExpr nameExpr,
        List<VariableInfo> parameters) {
      Optional<Node> parentNode = nameExpr.getParentNode();
      if (parentNode.isPresent() && parentNode.get() instanceof CastExpr) {
        CastExpr castExpr = (CastExpr) parentNode.get();
        parameters.add(new VariableInfo(castExpr.getType().toString(), "$event"));
      } else {
        logger.error(
            "\"$event\" should always be casted to it's intended type. Example: @click=\"doSomething((Event) $event)\".",
            expression.toString());
      }
    }