public static boolean isMaven2Used(@NotNull Project project) {
    String version = MavenDistributionsCache.getInstance(project).getSettingsDistribution().getVersion();
    if (version == null) return false;
    return StringUtil.compareVersionNumbers(version, "3") < 0;
  }
public static boolean isMaven2Used(@NotNull Project project)