public void setNextFigure(FiguresChain nextChain) {
        if (Objects.isNull(nextChain)) {
            throw new IllegalStateException("next part of the chain is null, please provide non-null chain");
        }
        this.chain = nextChain;
    }