List<VirtualFile> (List<VirtualFile> moduleFilesToReconnect, boolean updateExistingModules) { if (updateExistingModules) { return moduleFilesToReconnect; } // update only new modules return ContainerUtil.filter(moduleFilesToReconnect, moduleFile -> null == tree.findProject(moduleFile)); }