void (@NotNull Graphics2D g2, int position, @NotNull Color color, boolean select) { int nodeWidth = PaintParameters.getNodeWidth(getRowHeight()); int circleRadius = PaintParameters.getCircleRadius(getRowHeight()); int selectedCircleRadius = PaintParameters.getSelectedCircleRadius(getRowHeight()); int x0 = nodeWidth * position + nodeWidth / 2; int y0 = getRowHeight() / 2; int r = circleRadius; if (select) { r = selectedCircleRadius; } Ellipse2D.Double circle = new Ellipse2D.Double(x0 - r + 0.5, y0 - r + 0.5, 2 * r, 2 * r); g2.setColor(color); g2.fill(circle); }