public static @NotNull Color getForeground(@NotNull JTable table) {
    Color foreground = table.getForeground();
    return foreground != null ? foreground : CurrentTheme.Table.FOREGROUND;
  }
public static @NotNull Color getForeground(@NotNull JTable table)