void (final String variable, final SupportCode.TextWithMnemonic textWithMnemonic, final Module module, @NonNls final String setMethodName, final Class controlClass) { startMethodCall(variable, setMethodName); pushVar("'" + textWithMnemonic.getMnemonicChar() + "'"); endMethod(); if (haveSetDisplayedMnemonic(controlClass, module)) { // generated code needs to be compatible with jdk 1.3 startMethodCall(variable, "setDisplayedMnemonicIndex"); push(textWithMnemonic.myMnemonicIndex); endMethod(); } }