private static boolean shouldCancelSave(ThemeManager themeManager, String name) {
		if (name.isBlank()) {
			int result = OptionDialog.showOptionNoCancelDialog(null, "Invalid Theme Name",
				"The theme name can't be blank!\nDo you want to enter a new name?", "Yes", "Cancel",
				OptionDialog.QUESTION_MESSAGE);
			return result != OptionDialog.OPTION_ONE;
		}
		GTheme existing = themeManager.getTheme(name);
		if (existing instanceof DiscoverableGTheme) {
			int result = OptionDialog.showOptionNoCancelDialog(null, "Unmodifiable Theme",
				"The current theme is unmodifiable!\nDo you want to save as a new theme?", "Yes",
				"Cancel", OptionDialog.QUESTION_MESSAGE);
			return result != OptionDialog.OPTION_ONE;
		}
		return false;
	}
Saves all current theme changes. Handles several use cases such as requesting a new theme
name and asking to overwrite an existing file.
@param themeManager the theme manager
@return true if the operation was not cancelled
Ghidra/Framework/Docking/src/main/java/docking/theme/gui/ThemeUtils.java