private static @NotNull JLabel label(@NlsContexts.Label @NotNull String text, JBFont font) {
    var label = new JBLabel(text).withFont(font);
    label.setCopyable(true);
    return label;
  }
private static @NotNull JLabel label(@NlsContexts.Label @NotNull String text, JBFont font)