void (@NotNull Color grayedFg, @NotNull Color background) { setBackground(background); Color nameForeground = null; Color otherForeground = grayedFg; boolean calcColor = true; if (mySelection != EventHandler.SelectionType.NONE) { Color color = UIManager.getColor("Plugins.selectionForeground"); if (color != null) { nameForeground = otherForeground = color; calcColor = false; } } if (calcColor && !myIsAvailable) { calcColor = false; nameForeground = otherForeground = DisabledColor; } if (calcColor && (!myMarketplace || myInstalledDescriptorForMarketplace != null)) { IdeaPluginDescriptor plugin = getDescriptorForActions(); boolean disabled = myPluginModel.isUninstalled(plugin) || !MyPluginModel.isInstallingOrUpdate(plugin) && !isEnabledState(); if (disabled) { nameForeground = otherForeground = DisabledColor; } } myNameComponent.setHorizontalTextPosition(SwingConstants.LEFT); myNameComponent.setForeground(nameForeground); if (myRating != null) { myRating.setForeground(otherForeground); } if (myDownloads != null) { myDownloads.setForeground(otherForeground); } if (myVersion != null) { myVersion.setForeground(otherForeground); } if (myVendor != null) { myVendor.setForeground(otherForeground); } }