public static void adjustFragment(Program program, Address address, String name) {
		Listing listing = program.getListing();
		String[] treeNames = listing.getTreeNames();
		for (String treeName : treeNames) {
			try {
				ProgramFragment frag = listing.getFragment(treeName, address);
				frag.setName(name);
			}
			catch (DuplicateNameException e) {
				Msg.warn(MemoryBlockUtils.class,
					"Could not rename fragment to match newly created block because of name conflict");
			}
		}
	}
Adjusts the name of the fragment at the given address to the given name.
@param program the program whose fragment is to be renamed.
@param address the address of the fragment to be renamed.
@param name the new name for the fragment.
Ghidra/Features/Base/src/main/java/ghidra/app/util/MemoryBlockUtils.java