void (@NotNull Icon favorite, @NotNull Icon notFavorite, @NotNull Icon favoriteOnHover, @NotNull Icon notFavoriteOnHover) { myIcon = LayeredIcon.layeredIcon(new Icon[]{favorite, notFavorite}); myHoveredIcon = LayeredIcon.layeredIcon(new Icon[]{favoriteOnHover, notFavoriteOnHover}); getTemplatePresentation().setIcon(myIcon); getTemplatePresentation().setSelectedIcon(myHoveredIcon); updateIcons(); }