void (@NotNull List<? extends CompoundVFileEvent> events, int start, int end, @NotNull List<? super VFileEvent> outValidated, @NotNull List<? super Runnable> outApplyActions) { for (int i = start; i < end; i++) { VFileEvent event = events.get(i).getFileEvent(); if (event instanceof VFileCreateEvent || event instanceof VFileDeleteEvent || !event.isValid()) continue; outValidated.add(event); outApplyActions.add((Runnable)() -> applyEvent(event)); } }