private void clearCaches() {
    final ModuleStructureConfigurable rootConfigurable = myProjectStructureConfigurable.getModulesConfig();
    Module[] modules = rootConfigurable.getModules();
    if (modules.length == 0) return;

    StructureConfigurableContext context = rootConfigurable.getContext();
    ProjectStructureDaemonAnalyzer analyzer = context.getDaemonAnalyzer();
    analyzer.queueUpdates(ContainerUtil.map(modules, module -> new ModuleProjectStructureElement(context, module)));
  }
private void clearCaches()