void () { myFixture.configureByFile(getTestName(false) + ".java"); myFixture.addClass(""" class One { public void a() {} } """); final IntentionAction intention = myFixture.getAvailableIntention(InspectionGadgetsBundle.message("make.method.final.fix.name", "a")); assertNotNull(intention); String customPreviewText = myFixture.getIntentionPreviewText(intention); assertEquals(""" class One { public final void a() {} } """, customPreviewText); }