public static @Nullable Color getColor(@Nullable Component component, @NotNull ColorKey key) {
    Function<ColorKey, Color> function = ClientProperty.get(component, ColorKey.FUNCTION_KEY);
    Color color = function == null ? null : function.apply(key);
    return color != null ? color : key.getDefaultColor();
  }
public static @Nullable Color getColor(@Nullable Component component, @NotNull ColorKey key)