class OptimizeStatement<T> extends Statement {

    private final List<Table<T>> tables;
    private final GenericProperties<T> properties;

    public OptimizeStatement(List<Table<T>> tables, GenericProperties<T> properties) {
        this.tables = tables;
        this.properties = properties;
    }

    public List<Table<T>> tables() {
        return tables;
    }

    public GenericProperties<T> properties() {
        return properties;
    }

    public <U> OptimizeStatement<U> map(Function<? super T, ? extends U> mapper) {
        return new OptimizeStatement<>(
            Lists.map(tables, x -> x.map(mapper)),
            properties.map(mapper)
        );
    }

    @Override
    public boolean equals(Object o) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        return Objects.hash(tables, properties);
    }

    @Override
    public String toString() {
        return "OptimizeStatement{" +
               "tables=" + tables +
               ", properties=" + properties +
               '}';
    }

    @Override
    public <R, C> R accept(AstVisitor<R, C> visitor, C context) {
        return visitor.visitOptimizeStatement(this, context);
    }
}

        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        OptimizeStatement<?> that = (OptimizeStatement<?>) o;
        return Objects.equals(tables, that.tables) &&
               Objects.equals(properties, that.properties);
    
<methods>public non-sealed void <init>() ,public R accept(AstVisitor<R,C>, C) <variables>