public void resetModuleEditors() {
    initModuleModel();

    ApplicationManager.getApplication().runWriteAction(() -> {
      if (!myModuleEditors.isEmpty()) {
        LOG.error("module editors was not disposed");
        myModuleEditors.clear();
      }
      final Module[] modules = myModuleModel.getModules();
      for (Module module : modules) {
        getOrCreateModuleEditor(module);
      }
    });
    myFacetsConfigurator.resetEditors();
    myModified = false;
  }
public void resetModuleEditors()