private void checkForDuplicates() {
		ProgramModule[] parents = group.getParents();
		if (parents != null) {
			for (ProgramModule module : parents) {
				if (module.getIndex(replacement) >= 0) {
					setStatus(QuickFixStatus.WARNING,
						"The name \"" + replacement + "\" already exists in module \"" +
							module.getName() + "\"");
				}
			}
		}
	}
Constructor
@param program the program containing the program tree group to be renamed
@param group the program tree module or fragment to be renamed
@param newName the new name for the memory block
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/items/RenameProgramTreeGroupQuickFix.java