void (@NotNull TextWithMnemonic wrapper, @NotNull String expectedText) { String text = wrapper.getText(); assertEquals(expectedText, text); assertSame(text, wrapper.getText(false)); assertSame(text, wrapper.getText(true)); }