public static void detachModules(@NotNull Project project, Module @Nullable [] modules) {
    getInstance().detachModules(project, modules, null);
  }
public static void detachModules(@NotNull Project project, Module @Nullable [] modules)