Presentation (Presentation presentation) { Icon original = presentation.getIcon(); CenteredIcon centered = new CenteredIcon(original != null ? original : DEFAULT_ICON, 40, 40, false); presentation.setIcon(centered); return presentation; }