code: public void configureLabel(JLabel label) {
  
          Assert.notNull(label, "label");
  
          label.setText(this.text);
          label.setDisplayedMnemonic(getMnemonic());
  
          if (getMnemonicIndex() >= -1) {
              label.setDisplayedMnemonicIndex(getMnemonicIndex());
          }
  
      }
docs: Configures the given label with the parameters from this instance.
  
  @param label The label that is to be configured.
  @throws IllegalArgumentException if {@code label} is null.