class ManagedRenderer {

    private final Renderer renderer;
    private boolean enabled;

    public ManagedRenderer(Renderer renderer, boolean enabled) {
        this.renderer = renderer;
        this.enabled = enabled;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public Renderer getRenderer() {
        return renderer;
    }

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

    @Override
    public int hashCode() {
        return Objects.hash(renderer, enabled);
    }
}

        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        ManagedRenderer that = (ManagedRenderer) o;
        return enabled == that.enabled && renderer.equals(that.renderer);
    
<no_super_class>