@Override
			public boolean select(Viewer viewer, Object parentObject, Object element) {

				if (element instanceof IPackageFragmentRoot) {
					IPackageFragmentRoot packageFragmentRoot = (IPackageFragmentRoot) element;
					return !packageFragmentRoot.isArchive() && !packageFragmentRoot.isExternal();
				}

				return element instanceof IJavaModel || element instanceof IJavaProject;
			}
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