void () { MY_CRAZY_SEVERITY = new HighlightSeverity("myCrazy severity", 987); MainPassesRunner runner = configureTestFile(); MyHintedAnnotator annotator = new MyHintedAnnotator(); DaemonRespondToChangesTest.useAnnotatorsIn(JavaFileType.INSTANCE.getLanguage(), new DaemonRespondToChangesTest.MyRecordingAnnotator[]{annotator}, () -> { runner.runMainPasses(List.of(getFile().getVirtualFile()), MY_CRAZY_SEVERITY); }); assertTrue(annotator.didIDoIt()); }