public <T> T get(FileAttributeType attributeType, Class<T> valueClass, T defaultValue) {
		for (FileAttribute<?> attr : attributes) {
			if (attr.getAttributeType() == attributeType) {
				Object val = attr.getAttributeValue();
				if (valueClass.isAssignableFrom(val.getClass())) {
					return valueClass.cast(val);
				}
				break;
			}
		}
		return defaultValue;
	}
Gets the value of the specified attribute.

@param <T> expected class of the attribute value
@param attributeType {@link FileAttributeType} enum type of attribute to search for
@param valueClass java class of the value
@param defaultValue value to return if attribute is not present
@return value of requested attribute, or defaultValue if not present
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/fileinfo/FileAttributes.java