private void paintIcon(@NotNull Graphics2D g2) {
    GraphicsConfig config = GraphicsUtil.setupAAPainting(g2);
    if (ExperimentalUI.isNewUI()) {
      paintTagsForNewUi(g2);
    }
    else {
      paintTagsForClassicUi(g2);
    }
    config.restore();
  }
private void paintIcon(@NotNull Graphics2D g2)