void () { doTest(); String message = InspectionGadgetsBundle.message("replace.inheritance.with.delegation.quickfix"); final IntentionAction intention = myFixture.getAvailableIntention(message); assertNotNull(intention); String text = myFixture.getIntentionPreviewText(intention); assertEquals(""" class MainThread { private final Thread thread = new Thread(); }""", text); }