void (@NotNull TestFinishedEvent testFinishedEvent) { // local variable is used to prevent concurrent modification final GeneralTestEventsProcessor processor = myProcessor; if (processor != null) { processor.onTestFinished(testFinishedEvent); } }