public static String getCodeUnitDetails(CodeUnit cu) {
		if (cu == null) {
			return "You must be on a code unit to see the details.";
		}
		String indent = INDENT1;
		StringBuffer buf = new StringBuffer();
		buf.append("Code Unit:" + NEW_LINE);
		Address min = cu.getMinAddress();
		Address max = cu.getMaxAddress();
		String addrRangeStr = min + ((min.equals(max)) ? "" : " - " + max);
		String cuRep;
		if (cu instanceof Data) {
			cuRep = ((Data) cu).getDataType().getPathName();
		}
		else if (cu instanceof Instruction) {
			Instruction inst = (Instruction) cu;
			boolean removedFallThrough =
				inst.isFallThroughOverridden() && (inst.getFallThrough() == null);
			boolean hasFlowOverride = inst.getFlowOverride() != FlowOverride.NONE;
			boolean hasLengthOverride = inst.isLengthOverridden();
			cuRep = cu.toString();
			if (removedFallThrough) {
				cuRep += NEW_LINE + indent + getSpaces(addrRangeStr.length()) + "    " +
					"Removed FallThrough";
			}
			else if (inst.isFallThroughOverridden()) {
				Reference[] refs = cu.getReferencesFrom();
				// Show the fallthrough override.
				for (Reference ref : refs) {
					if (ref.getReferenceType().isFallthrough()) {
						cuRep += NEW_LINE + indent + getSpaces(addrRangeStr.length()) + "    " +
							"FallThrough Override: " +
							DiffUtility.getUserToAddressString(inst.getProgram(), ref);
					}
				}
			}
			if (hasFlowOverride) {
				cuRep += NEW_LINE + indent + getSpaces(addrRangeStr.length()) + "    " +
					"Flow Override: " + inst.getFlowOverride();
			}
			if (hasLengthOverride) {
				cuRep += NEW_LINE + indent + getSpaces(addrRangeStr.length()) + "    " +
					"Length Override: " + inst.getLength() + " (actual length is " +
					inst.getParsedLength() + ")";
			}
			// Commented the following out, since we may want the hash code in the future.
//			cuRep +=
//				STANDARD_NEW_LINE + indent + getSpaces(addrRangeStr.length()) + "    " +
//					"Instruction Prototype hash = " +
//					Integer.toHexString(inst.getPrototype().hashCode());
		}
		else {
			cuRep = cu.toString();
		}
		buf.append(indent + addrRangeStr + "    " + cuRep + NEW_LINE);
		return buf.toString();
	}
Gets a string that indicates the code unit along with its overrides.
This can contain new line characters.
@param cu the code unit
@return info about the code unit.
Ghidra/Features/Base/src/main/java/ghidra/app/merge/listing/CodeUnitDetails.java