@Nullable
  private static Module findModuleForFiles(@NotNull Project project, VirtualFile @NotNull [] files) {
    Set<Module> modules = ContainerUtil.map2Set(files, f -> ModuleUtilCore.findModuleForFile(f, project));
    return ContainerUtil.getFirstItem(modules);
  }
@Nullable
  private static Module findModuleForFiles(@NotNull Project project, VirtualFile @NotNull [] files)