void (int mnemonic, String text) { if (mnemonic == 0) return; if (myMnemonics == null) myMnemonics = new HashMap<>(); final String other = myMnemonics.get(mnemonic); if (other != null && !other.equals(text)) { LOG.error("conflict: multiple components with mnemonic '" + (char)mnemonic + "' seen on '" + text + "' and '" + other + "'"); } myMnemonics.put(mnemonic, text); }