private Set<EquateRowObject> createEntriesFromDataTypeManager() {

		DataTypeManagerService service = tool.getService(DataTypeManagerService.class);
		if (service == null) {
			return new HashSet<>();
		}

		Set<EquateRowObject> entries = new HashSet<>();

		//@formatter:off
		service.getSortedDataTypeList()
			.stream()
			.filter(dt -> dt instanceof Enum)
			.map(Enum.class::cast)
			.flatMap(this::enumToRowObjects)
			.forEach(entries::add);
		//@formatter:on

		return entries;
	}
Constructor

@param tool the EquatePlugin that launched this dialog(used to validate input)
@param program the program the equate is located in.
@param value the equate value to set.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bean/SetEquateDialog.java