private void markExistedModulesWithSameRoot(DataNode<E> node,
                                              IdeModifiableModelsProvider modelsProvider) {
    ModuleData moduleData = node.getData();
    ProjectSystemId projectSystemId = moduleData.getOwner();
    Arrays.stream(modelsProvider.getModules())
      .filter(ideModule -> isModulePointsSameRoot(moduleData, ideModule))
      .filter(module -> !ExternalSystemApiUtil.isExternalSystemAwareModule(projectSystemId, module))
      .forEach(module -> {
        ExternalSystemModulePropertyManager.getInstance(module)
          .setExternalOptions(projectSystemId, moduleData, node.getData(ProjectKeys.PROJECT));
      });

  }
private void markExistedModulesWithSameRoot(DataNode<E> node,
                                              IdeModifiableModelsProvider modelsProvider)