public static @NotNull Color getSelectionForeground(@NotNull JTree tree) {
    JTable table = getTableFor(tree);
    if (table != null) return getSelectionForeground(table); // tree table
    Color foreground = getCustomColor(tree, CUSTOM_SELECTION_FOREGROUND);
    return foreground != null ? foreground : CurrentTheme.Tree.Selection.foreground(isFocused(tree));
  }
public static @NotNull Color getSelectionForeground(@NotNull JTree tree)