public static @NotNull ShortenCommandLine getDefaultMethod(@Nullable Project project, String rootPath) {
    if (!JdkUtil.useDynamicClasspath(project)) return NONE;
    return getDefaultMethodForJdkLevel(rootPath);
  }
public static @NotNull ShortenCommandLine getDefaultMethod(@Nullable Project project, String rootPath)