public static void checkOrInstallForSync(@NotNull Project project,
                                           @Nullable String workingDir) {
    checkOrInstall(project, workingDir, MavenProjectsManager.getInstance(project).getSyncConsole());
  }
public static void checkOrInstallForSync(@NotNull Project project,
                                           @Nullable String workingDir)