void (@NotNull Graphics2D g, int x, int y, int width, int height, Float value) { float alpha = getAlpha(value); if (alpha > 0) { Composite composite = g.getComposite(); g.setComposite(getComposite(alpha)); paint(g, x, y, width, height); g.setComposite(composite); } }