@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        BSTNode bstNode = (BSTNode) o;

        if (value != null ? !value.equals(bstNode.value) : bstNode.value != null) return false;

        return true;
    }