void (@NotNull JComponent component, @NotNull Presentation presentation) { component.setVisible(presentation.isVisible()); component.setEnabled(presentation.isEnabled()); getSearchFilterComponent().setVisible(Toggleable.isSelected(presentation)); var icon = presentation.getIcon(); if (icon instanceof LayeredIcon && ((LayeredIcon)icon).getIconCount() == 2) { ((LayeredIcon)icon).setIcon(isModified(component) ? AllIcons.Nodes.TabAlert : null, 1); presentation.setIcon(icon); } }