private static @NotNull JLabel createLabelForComponent(@NotNull @NlsContexts.Label String labelText, @NotNull JComponent component) {
    JLabel label = new JLabel(UIUtil.replaceMnemonicAmpersand(labelText));
    label.setLabelFor(component);
    return label;
  }
private static @NotNull JLabel createLabelForComponent(@NotNull @NlsContexts.Label String labelText, @NotNull JComponent component)