Add IF to grid for Icon

How can I add the ‘If’ in this code.

grid.addColumn(new ComponentRenderer<>(e -> {
            Icon recycle = new Icon(VaadinIcon.RECYCLE);
            recycle.setColor(GREEN_COLOR);
            recycle.addClickListener(event -> callVoid(e));
            return recycle;
        })).setTextAlign(ColumnTextAlign.CENTER).setHeader(RE_CALCULATE);

I want

grid.addColumn(new ComponentRenderer<>(e -> {

			if(e.getName().equals("")) // new Icon(VaadinIcon.RECYCLE);
			not: new Icon(VaadinIcon.OPEN_BOOK);

            Icon recycle = new Icon(VaadinIcon.RECYCLE);
            recycle.setColor(GREEN_COLOR);
            recycle.addClickListener(event -> callVoid(e));
            return recycle;
        })).setTextAlign(ColumnTextAlign.CENTER).setHeader(RE_CALCULATE);

Could you describe your problem a bit more, I do not understand what is the question.

Thanks, I have received the answer already.