void (Computable<? extends Collection<? extends I>> toRemoveComputable, @NotNull Collection<? extends DataNode<E>> toIgnore, @NotNull ProjectData projectData, @NotNull Project project, @NotNull IdeModifiableModelsProvider modelsProvider) { Map<Module, Collection<ExportableOrderEntry>> byModule = groupByModule(toRemoveComputable.compute()); for (Map.Entry<Module, Collection<ExportableOrderEntry>> entry : byModule.entrySet()) { removeData(entry.getValue(), entry.getKey(), modelsProvider); } }