private void createAndAppendGenericFragment(String fragment) {
		// If fragment key does not already exist, insert nextUnique and
		// pre-calculate
		// a new nextUnique value. Regardless, uniqueFragment is a valid mapped
		// unique
		// value for fragment.
		// If fragment is empty string, just copy that.
		if (fragment.isEmpty()) {
			return;
		}
		// Inserting first char of real fragment (this fixes up anonymous
		// namespace 'A' code).
		if (fragment.charAt(0) == 'A') {
			nextUnique = 'A' + nextUnique;
		}
		String uniqueFragment = uniqueFragments.putIfAbsent(fragment, nextUnique);
		if (uniqueFragment == null) {
			uniqueFragment = nextUnique;
			nextUnique = nextUnique();
		}
		// Use the uniqueFragment associated with fragment.
		genericizedString.append(uniqueFragment);
	}
Converts Fragment to generic name fragment and appends it to the generic
string. If the fragment has been seen before, uses previously devised
generic name for that fragment.
Ghidra/Features/MicrosoftDmang/src/main/java/mdemangler/MDMangGenericize.java