void (final String variable, final FontDescriptor fontDescriptor, @NonNls final String getterName) { if (fontDescriptor.getSwingFont() != null) { startStaticMethodCall(UIManager.class, "getFont"); push(fontDescriptor.getSwingFont()); endMethod(); } else { if (myGetFontMethod == null) { myGetFontMethod = AsmCodeGenerator.GET_FONT_METHOD_NAME; } startMethodCall("this", myGetFontMethod); push(fontDescriptor.getFontName()); push(fontDescriptor.getFontStyle(), ourFontStyleMap); push(fontDescriptor.getFontSize()); pushVar(variable + "." + getterName + "()"); endMethod(); } }