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