void (@NotNull JComponent splitters, @NotNull Graphics g) { if (!isEnabled()) { return; } UISettings.setupAntialiasing(g); UIUtil.TextPainter painter = createTextPainter(); advertiseActions(splitters, painter); painter.draw(g, (width, height) -> { Dimension s = splitters.getSize(); int w = (s.width - width) / 2; int h = (int)(s.height * heightRatio()); return Couple.of(w, h); }); }