public static void restartMavenConnectors(@NotNull Project project, boolean wait) {
    restartMavenConnectors(project, wait, c -> Boolean.TRUE);
  }
public static void restartMavenConnectors(@NotNull Project project, boolean wait)