void (@NotNull List<? extends @NotNull VFileEvent> events) { for (VFileEvent event : events) { VirtualFile file = event.getFile(); if (file != null && !(file.getFileSystem() instanceof TempFileSystemMarker)) { boolean shouldBeValid = !(event instanceof VFileCreateEvent); assertEquals(event.toString(), shouldBeValid, file.isValid()); } } }