class BrandToolbarItem implements ToolbarItem<ImageView> {

    private final Brand brand;

    public BrandToolbarItem(Brand brand) {
        this.brand = requireNonNull(brand);
    }

    @Override
    public ImageView createNode() {<FILL_FUNCTION_BODY>}

    @Override
    public ToolbarSide getSide() {
        return ToolbarSide.RIGHT;
    }
}

        final ImageView view = new ImageView();
        view.setPreserveRatio(true);
        view.setFitHeight(48);
        brand.logoLarge()
            .map(Image::new)
            .ifPresent(view::setImage);
        return view;
    
<no_super_class>