@Override
			public IStatus validate(Object[] sel) {
				if (sel.length == 1 && sel[0] instanceof IPackageFragmentRoot) {
					return new Status(IStatus.OK, Activator.PLUGIN_ID, IStatus.OK, "", null);
				}
				return new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, errorMessage,
					null);
			}
Creates a new package fragment root selection dialog.

@param shell The parent shell for the dialog.
@param title The title of the dialog.
@param message The message of the dialog.
@param errorMessage the error message to display if an invalid selection is made.
GhidraBuild/EclipsePlugins/GhidraDev/GhidraDevPlugin/src/main/java/ghidradev/ghidraprojectcreator/utils/PackageFragmentRootSelectionDialog.java