void (final int count) { // local variable is used to prevent concurrent modification final GeneralTestEventsProcessor processor = myProcessor; if (processor != null) { processor.onTestsCountInSuite(count); } }