void (@NotNull Collection<? extends ExportableOrderEntry> toRemove, @NotNull Module module, @NotNull IdeModifiableModelsProvider modelsProvider) { if (toRemove.isEmpty()) { return; } final ModifiableRootModel modifiableRootModel = modelsProvider.getModifiableRootModel(module); for (final ExportableOrderEntry dependency : toRemove) { modifiableRootModel.removeOrderEntry(dependency); } }