String newVersion = configUtils.getSDKVersion(path);
boolean addVersion = !versions.contains(newVersion) ||
Messages.showOkCancelDialog("Add one more " + libraryKind + " library of version " + newVersion + "?",
"Duplicate library version", bigIcon) == 0;
if (addVersion && !AbstractConfigUtils.UNDEFINED_VERSION.equals(newVersion)) {
<BUG>final String name = generatePointerName(context, newVersion, configUtils);
</BUG>
final CreateLibraryDialog dialog = new CreateLibraryDialog(project, "Create " + libraryKind + " library",
"Create Project " + libraryKind + " library '" + name + "'",
"Create Global " + libraryKind + " library '" + name + "'");

String newVersion = configUtils.getSDKVersion(path);
boolean addVersion = !versions.contains(newVersion) ||
Messages.showOkCancelDialog("Add one more " + libraryKind + " library of version " + newVersion + "?",
"Duplicate library version", bigIcon) == 0;
if (addVersion && !AbstractConfigUtils.UNDEFINED_VERSION.equals(newVersion)) {
final String name = generatePointerName(context, newVersion, getLibraryPrefix());
final CreateLibraryDialog dialog = new CreateLibraryDialog(project, "Create " + libraryKind + " library",
"Create Project " + libraryKind + " library '" + name + "'",
"Create Global " + libraryKind + " library '" + name + "'");
