void () { final LocalInspectionTool inspection = new RedundantCompareToJavaTimeInspection(); myFixture.enableInspections(inspection); myFixture.configureByFile("beforeCompareTo.java"); myFixture.launchAction(myFixture.findSingleIntention("Fix all 'Expression with 'java.time' 'compareTo()' call can be simplified' problems in file")); myFixture.checkResultByFile("afterCompareTo.java"); }