private static @Nullable Font maybeConvertToFont(Object maybeFont) {
    if (maybeFont instanceof Font font) {
      return font;
    }
    if (maybeFont instanceof Supplier<?> supplier) {
      return maybeConvertToFont(supplier.get());
    }
    return null;
  }
private static @Nullable Font maybeConvertToFont(Object maybeFont)