private void paintTagsForNewUi(@NotNull Graphics2D g2) {
    float scale = mySize / SIZE;
    int tagCount = myColors.size();
    for (int i = 0; i < tagCount; i++) {
      Color color = myColors.get(tagCount - 1 - i);
      TagPainter.paintTag(g2, scale * 2 * i, i == tagCount - 1, myBgColor, color, mySize);

      if (i != tagCount - 1) {
        float x0 = scale * 2 * i + 2 * scale - JBUIScale.scale((float)Math.sqrt(2.0));
        TagPainter.paintTag(g2, x0, false, myBgColor, myBgColor, mySize);
      }
    }
  }
private void paintTagsForNewUi(@NotNull Graphics2D g2)