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