void () { doTest(); final IntentionAction intention = myFixture.getAvailableIntention(InspectionGadgetsBundle.message("public.constructor.quickfix")); assertNotNull(intention); String text = myFixture.getIntentionPreviewText(intention); assertEquals(""" package com.siyeh.igtest.classlayout.public_constructor; public class PublicConstructor { private PublicConstructor() { } public static PublicConstructor createPublicConstructor() { return new PublicConstructor(); } } abstract class X implements java.io.Externalizable { public X() {} } class Y { public Y() {} } abstract class Z { public Z() {} }""", text); }