void (@Nullable JComponent parentComponent) { myDiff.forEach((key, value) -> setEnabled(key.getPluginId(), value.getSecond())); myDiff.clear(); myPluginsToRemoveOnCancel.forEach(pluginDescriptor -> PluginInstaller.uninstallDynamicPlugin(parentComponent, pluginDescriptor, false)); myPluginsToRemoveOnCancel.clear(); }