private Structure getSelectedStructure() {
		int row = matchingStructuresTable.getSelectedRow();
		if (row < 0) {
			return null;
		}

		Object cellValue = matchingStructuresTable.getValueAt(row, 0);
		return ((StructureWrapper) cellValue).getStructure();
	}
Shows a dialog that allows the user to create a new structure.
<p>
This method expects that {@code program} and {@code structure} be
non-null.

@param  program The current program which will be used to obtain current
        structures in the system.
@param  structure The new structure shell that will be used to find
        matching structures in memory.
@return The new structure that will be added to memory.  This will be
        a new structure with a new name, or an existing structure.
@throws NullPointerException if either of the parameters are null.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/data/CreateStructureDialog.java