@Override
	protected String getDuplicateNameErrorMessage(String name) {
		if (componentProvider.getInfoManager().alreadyExists(name)) {
			return "Duplicate script name.";
		}

		File userChoice = new File(getDirectory().getFile(false), name);
		if (userChoice.exists()) {
			return "File already exists on disk.";
		}

		return null;
	}
Overridden because we don't allow the user to use an existing name when creating a new
script.  However, we sometimes allow that case when performing a 'Save As...'
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/SaveNewScriptDialog.java