public void checkForDuplicateMnemonics(JLabel label) {
    if (!isCheckingDuplicateMnemonicsEnabled()) {
      return;
    }
    checkForDuplicateMnemonics(label.getDisplayedMnemonic(), label.getText());
  }
public void checkForDuplicateMnemonics(JLabel label)