void (@NotNull TextWithMnemonic wrapper, int expectedIndex, int expectedCode, char expectedChar) { // Convert chars to string for better message assertEquals(String.valueOf(expectedChar), String.valueOf(wrapper.getMnemonicChar())); assertEquals(expectedCode, wrapper.getMnemonicCode()); assertEquals(expectedIndex, wrapper.getMnemonicIndex()); }