void (@NotNull TestFailedEvent testFailedEvent) { assertNotNull(testFailedEvent.getLocalizedFailureMessage()); // local variable is used to prevent concurrent modification final GeneralTestEventsProcessor processor = myProcessor; if (processor != null) { processor.onTestFailure(testFailedEvent); } }