void (@NotNull Component c, @NotNull Graphics g, int x, int y, int width, int height, boolean expanded, boolean selected) { Icon icon = getIcon(expanded, selected); icon.paintIcon(null, g, x + (width - icon.getIconWidth()) / 2, y + (height - icon.getIconHeight()) / 2); }