@Override
	public DataTypeManager[] getDataTypeManagers() {
		List<DataTypeManager> dtmList = openDTMs.values()
				.stream()
				.filter(dtmInfo -> !dtmInfo.isClosed())
				.map(dtmInfo -> dtmInfo.dtm())
				.collect(Collectors.toList());
		return dtmList.toArray(DataTypeManager[]::new);
	}
Simple, non-ui implementation of the {@link DataTypeArchiveService} interface.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/archive/DefaultDataTypeArchiveService.java