void (final String text, final Key outputType) { assertNotNull(text); if (StringUtil.isEmpty(text)) { return; } // local variable is used to prevent concurrent modification final GeneralTestEventsProcessor processor = myProcessor; if (processor != null) { processor.onUncapturedOutput(text, outputType); } }