void (IncrementalCacheUpdateEvent event) { //noinspection ForLoopReplaceableByForEach for (int i = 0; i < myListeners.size(); i++) { // Avoid unnecessary Iterator object construction as this method is expected to be called frequently. SoftWrapAwareDocumentParsingListener listener = myListeners.get(i); listener.onRecalculationEnd(event); } }