void (@NotNull Graphics2D g2) { float scale = mySize / SIZE; for (int i = myColors.size() - 1; i >= 0; i--) { if (i != myColors.size() - 1) { g2.setColor(myBgColor); paintTag(g2, scale, scale * 2 * i + 1, 0); } g2.setColor(myColors.get(i)); paintTag(g2, scale, scale * 2 * i, 0); } }