public static void addProgramHeaderType(ElfProgramHeaderType type,
			Map<Integer, ElfProgramHeaderType> programHeaderTypeMap)
					throws DuplicateNameException {
		ElfProgramHeaderType conflictType = programHeaderTypeMap.get(type.value);
		if (conflictType != null) {
			throw new DuplicateNameException(
				"ElfProgramHeaderType conflict during initialization (" + type.name + " / " +
					conflictType.name + "), value=0x" +
					Integer.toHexString(type.value));
		}
		for (ElfProgramHeaderType existingType : programHeaderTypeMap.values()) {
			if (type.name.equalsIgnoreCase(existingType.name)) {
				throw new DuplicateNameException(
					"ElfProgramHeaderType conflict during initialization, name=" + type.name);
			}
		}
		programHeaderTypeMap.put(type.value, type);
	}
Add the specified program header type to the specified map.
@param type program header type
@param programHeaderTypeMap map of program header types
@throws DuplicateNameException if new type name already defined within
the specified map
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfProgramHeaderType.java