public final static String getRecordName(int type, Class<?> recordTypesClass) {
		for (Field field : recordTypesClass.getDeclaredFields()) {
			int modifiers = field.getModifiers();
			if (Modifier.isFinal(modifiers) && Modifier.isStatic(modifiers)) {
				try {
					Integer value = (Integer) field.get(null);
					if (type == value) {
						return field.getName();
					}
				}
				catch (Exception e) {
					break;
				}
			}
		}
		return "<UNKNOWN>";
	}
Gets the name of the given record type

@param type The record type
@param recordTypesClass The class that contains accessible OMF type fields
@return The name of the given record type
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/omf/OmfUtils.java