void (VirtualFile fileOrDir) { List<DelayedApply> toRemove = new ArrayList<>(); for (DelayedApply a : myDelayedApplies) { if (VfsUtil.isAncestor(fileOrDir, a.getFile(), false)) { toRemove.add(a); } } for (DelayedApply a : toRemove) { myDelayedApplies.remove(a); } }