private void searchForMatchingStructures(final Program program, final Structure structure) {

		// Get the structures from the DataTypeManagers of the DataTypeManagerService
		DataTypeManagerService service = pluginTool.getService(DataTypeManagerService.class);

		DataTypeManager[] dataTypeManagers = null;

		if (service != null) {
			dataTypeManagers = service.getDataTypeManagers();
		}
		else {
			dataTypeManagers = new DataTypeManager[] { program.getDataTypeManager() };
		}

		getMatchingStructuresFromDataTypeManagers(structure, dataTypeManagers);
	}
Creates a new dialog with the given parent.

@param tool The current tool that this dialog needs to access services.
@param program the current program
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/CreateStructureDialog.java