@Override
    public void paint(@NotNull Graphics2D g, double x, double y, double width, double height, Font font) {
      if (!Registry.is("ide.text.effect.new")) {
        LinePainter2D.paint(g, x, y + 1, x + width, y + 1);
      }
      else {
        paintUnderline(g, x, y, width, height, font, 1, this);
      }
    }
@Override
    public void paint(@NotNull Graphics2D g, double x, double y, double width, double height, Font font)