void () { myFixture.enableInspections(new EmptyInitializerInspection()); myFixture.configureByText("Test.java", """ class X { <caret>{} } """); IntentionAction intention = myFixture.findSingleIntention("Delete empty class initializer"); myFixture.checkPreviewAndLaunchAction(intention); myFixture.checkResult(""" class X { } """); }