public static void performAction(DockingActionIf action, Program program, GTree tree,
			boolean wait) {
		AbstractGuiTest.runSwing(() -> {
			ActionContext context =
				new DataTypesActionContext(null, program, (DataTypeArchiveGTree) tree, null, true);
			action.actionPerformed(context);
		}, wait);

		if (!SwingUtilities.isEventDispatchThread()) {
			AbstractGuiTest.waitForSwing();
		}
	}
Trims the given string if it ends with {@link #ARCHIVE_FILE_EXTENSION}.
@param archiveName The name to trim
@return The original name, trimmed as necessary
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/datamgr/DataTypeTestUtils.java