void () { myFixture.enableInspections(new UnusedImportInspection()); myFixture.configureByText("a.java", """ package p; import java.<caret>blahblah.Set; """); myFixture.launchAction(myFixture.findSingleIntention(JavaErrorBundle.message("remove.unused.imports.quickfix.text"))); myFixture.checkResult("package p;\n\n"); }