private DataTypeManagerInfo getOpenDTMInfo(ResourceFile file) {
		for (DataTypeManagerInfo dtmInfo : openDTMs.values()) {
			if (dtmInfo.file != null && dtmInfo.file.equals(file)) {
				if (dtmInfo.isClosed()) {
					openDTMs.remove(dtmInfo.dtm.getUniversalID());
					return null;
				}
				return dtmInfo;
			}
		}
		return null;
	}
Simple, non-ui implementation of the {@link DataTypeArchiveService} interface.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DefaultDataTypeArchiveService.java