class Block extends Node {

    public Block getParent() {
        return (Block) super.getParent();
    }

    @Override
    protected void setParent(Node parent) {<FILL_FUNCTION_BODY>}
}

        if (!(parent instanceof Block)) {
            throw new IllegalArgumentException("Parent of block must also be block (can not be inline)");
        }
        super.setParent(parent);
    
<methods>public non-sealed void <init>() ,public abstract void accept(org.commonmark.node.Visitor) ,public void addSourceSpan(org.commonmark.node.SourceSpan) ,public void appendChild(org.commonmark.node.Node) ,public org.commonmark.node.Node getFirstChild() ,public org.commonmark.node.Node getLastChild() ,public org.commonmark.node.Node getNext() ,public org.commonmark.node.Node getParent() ,public org.commonmark.node.Node getPrevious() ,public List<org.commonmark.node.SourceSpan> getSourceSpans() ,public void insertAfter(org.commonmark.node.Node) ,public void insertBefore(org.commonmark.node.Node) ,public void prependChild(org.commonmark.node.Node) ,public void setSourceSpans(List<org.commonmark.node.SourceSpan>) ,public java.lang.String toString() ,public void unlink() <variables>private org.commonmark.node.Node firstChild,private org.commonmark.node.Node lastChild,private org.commonmark.node.Node next,private org.commonmark.node.Node parent,private org.commonmark.node.Node prev,private List<org.commonmark.node.SourceSpan> sourceSpans