void () { if (myAddSupportPanel.hasSelectedFrameworks()) { if (!myAddSupportPanel.validate()) return; if (!myAddSupportPanel.downloadLibraries(myAddSupportPanel.getMainPanel())) return; WriteAction.run(() -> { ModifiableRootModel model = ModuleRootManager.getInstance(myModule).getModifiableModel(); myAddSupportPanel.addSupport(myModule, model); model.commit(); }); } super.doOKAction(); }