void () { myFixture.configureByFile(getTestName(true) + "/test.java"); myFixture.enableInspections(new StaticPseudoFunctionalStyleMethodInspection()); IntentionAction action = myFixture.getAvailableIntention("Replace with Java Stream API pipeline"); assertNotNull("Quick fix isn't found", action); myFixture.checkPreviewAndLaunchAction(action); myFixture.checkResultByFile(getTestName(true) + "/test_after.java"); }