private static @NotNull JBLabel addComment(
    @NotNull PaintAwarePanel canvas,
    @NotNull @NlsContexts.Label String text,
    @NotNull GridBag constraints
  ) {
    var label = new JBLabel(text);
    label.setComponentStyle(UIUtil.ComponentStyle.SMALL);
    label.setForeground(UIUtil.getLabelFontColor(UIUtil.FontColor.BRIGHTER));
    canvas.add(label, constraints);
    return label;
  }
private static @NotNull JBLabel addComment(
    @NotNull PaintAwarePanel canvas,
    @NotNull @NlsContexts.Label String text,
    @NotNull GridBag constraints
  )