void (final String localizedMessage, @Nullable final String stackTrace, boolean isCritical) { assertNotNull(localizedMessage); // local variable is used to prevent concurrent modification final GeneralTestEventsProcessor processor = myProcessor; if (processor != null) { processor.onError(localizedMessage, stackTrace, isCritical); } }