class VoidVisitorWithDefaultsGenerator extends VisitorGenerator {
    public VoidVisitorWithDefaultsGenerator(SourceRoot sourceRoot) {
        super(sourceRoot, "com.github.javaparser.ast.visitor", "VoidVisitorWithDefaults", "void", "A", true);
    }

    @Override
    protected void generateVisitMethodBody(BaseNodeMetaModel node, MethodDeclaration visitMethod, CompilationUnit compilationUnit) {<FILL_FUNCTION_BODY>}
}

        visitMethod.getParameters().forEach(p -> p.setFinal(true));

        BlockStmt body = visitMethod.getBody().get();
        body.getStatements().clear();

        body.addStatement("defaultAction(n, arg);");
    
<methods>public final void generate() throws java.lang.Exception<variables>private final non-sealed java.lang.String argumentType,private final non-sealed boolean createMissingVisitMethods,private final non-sealed java.lang.String pkg,private final non-sealed java.lang.String returnType,private final non-sealed java.lang.String visitorClassName