public static Boolean canSaveToName(ThemeManager themeManager, String name) {
		if (name.isBlank()) {
			return false;
		}
		GTheme existing = themeManager.getTheme(name);
		// if no theme exists with that name, then we are safe to save it
		if (existing == null) {
			return true;
		}
		// if the existing theme is a built-in theme, then we definitely can't save to that name
		if (existing instanceof DiscoverableGTheme) {
			return false;
		}
		// if the existing theme with that name has no associated file, we can save it without
		// worrying about overwriting an existing file.
		if (existing.getFile() == null) {
			return true;
		}
		int result = OptionDialog.showYesNoDialog(null, "Overwrite Existing Theme?",
			"Do you want to overwrite the existing theme file for \"" + name + "\"?");
		return result == OptionDialog.YES_OPTION;
	}
Prompts for and deletes a selected theme.
@param themeManager the theme manager
Ghidra/Framework/Docking/src/main/java/docking/theme/gui/ThemeUtils.java