void (@NotNull List<Root> roots, int[] indicesToRemove) { if (indicesToRemove.length > 0) { List<Root> rootsToRemove = Arrays.stream(indicesToRemove).mapToObj(ind -> roots.get(ind)).toList(); if (LOG.isDebugEnabled()) { LOG.debug("Removing " + toRootFiles(rootsToRemove)); } model.roots = ContainerUtil.filter(roots, root -> !rootsToRemove.contains(root)); model.treeNodesRemoved(path, indicesToRemove, rootsToRemove.toArray()); } }