List<Module> (Producer<@Nullable AbstractProjectWizard> createWizardAction) { var wizard = createWizardAction.produce(); if (null == wizard) return null; try { return doAddModule(wizard); } finally { Disposer.dispose(wizard.getDisposable()); } }