void (@NotNull VirtualFile @NotNull ... paths) { final Set<VirtualFile> pathsSet = Set.of(paths); int size = getRowCount(); IntArrayList indicesToRemove = new IntArrayList(paths.length); for (int idx = 0; idx < size; idx++) { VirtualFile path = getValueAt(idx); if (path != null && pathsSet.contains(path)) { indicesToRemove.add(idx); } } itemsRemoved(ListUtil.removeIndices(myList, indicesToRemove.toArray())); }