public static int getLineHeight(@NotNull JComponent component) {
    return component.getFontMetrics(component.getFont()).getHeight();
  }
public static int getLineHeight(@NotNull JComponent component)