public char getMnemonicChar() {
      if (myMnemonicIndex == -1) {
        throw new IllegalStateException("text doesn't contain mnemonic");
      }
      return Character.toUpperCase(myText.charAt(myMnemonicIndex));
    }
public char getMnemonicChar()