Color (boolean isSelected, boolean hasFocus, @Nullable Presentation presentation) { if (isSelected) return NamedColorUtil.getListSelectionForeground(hasFocus); if (presentation != null && !presentation.isEnabledAndVisible()) return NamedColorUtil.getInactiveTextColor(); return UIUtil.getListForeground(); }