class AbstractNode implements Node {

    abstract org.eclipse.aether.graph.DependencyNode getDependencyNode();

    @Override
    public boolean accept(NodeVisitor visitor) {<FILL_FUNCTION_BODY>}

    @Override
    public Node filter(Predicate<Node> filter) {
        List<Node> children =
                getChildren().stream().filter(filter).map(n -> n.filter(filter)).collect(Collectors.toList());
        return new WrapperNode(this, Collections.unmodifiableList(children));
    }

    @Override
    public String asString() {
        StringBuilder sb = new StringBuilder();

        DependencyNode node = getDependencyNode();
        Artifact artifact = node.getArtifact();
        sb.append(artifact);

        Dependency dependency = node.getDependency();
        if (dependency != null) {
            sb.append(":").append(dependency.getScope());
        }

        return sb.toString();
    }

    @Override
    public String toString() {
        return getDependencyNode().toString();
    }
}

        if (visitor.enter(this)) {
            for (Node child : getChildren()) {
                if (!child.accept(visitor)) {
                    break;
                }
            }
        }
        return visitor.leave(this);
    
<no_super_class>