void () { final JavaFxEventHandlerInspection inspection = new JavaFxEventHandlerInspection(); inspection.myDetectNonVoidReturnType = true; myFixture.enableInspections(inspection); doHighlightingTest(); }